X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fsensors%2Fpiped.h;fp=server%2Fsensors%2Fpiped.h;h=92348f3ff3168ff3a252cccb90db26d7aa9f49da;hb=289794ba2dcbe6234e25e5d00531b26baee342b7;hp=0000000000000000000000000000000000000000;hpb=71c13fe3c04db7f93a69cbc6a6c7c3dc2393bf3f;p=matches%2FMCTX3420.git diff --git a/server/sensors/piped.h b/server/sensors/piped.h new file mode 100644 index 0000000..92348f3 --- /dev/null +++ b/server/sensors/piped.h @@ -0,0 +1,15 @@ +#ifndef _PIPED_H +#define _PIPED_H + +/** + * @file piped.h + * @brief Sensor run by an external process and sent to this one through a pipe + * ... This is here as an example so that if people really hate our program they can still use the FastCGI API but make an entirely seperate sensor program + */ + +#define PIPED_MAX 1 + +extern bool Piped_Init(const char * name, int id); +extern bool Piped_Read(int id, double * value); +extern bool Piped_Cleanup(int id); +#endif //_PIPED_H