X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Factuator.h;h=46c2f44f1ce55f85bb1fcbfbcc1afad194c20baa;hb=HEAD;hp=f81852605b720eb6105f6646c8c82beaebcf1bb7;hpb=f7e1e1e4b7c22ef34702cff9b01025612809aab8;p=matches%2FMCTX3420.git diff --git a/server/actuator.h b/server/actuator.h index f818526..46c2f44 100644 --- a/server/actuator.h +++ b/server/actuator.h @@ -67,13 +67,14 @@ typedef struct /** Sanity check function **/ SanityFn sanity; /** Cleanup function **/ - CleanFn clean; + CleanFn cleanup; /** Last setting **/ DataPoint last_setting; } Actuator; extern void Actuator_Init(); // One off initialisation of *all* Actuators +extern void Actuator_Cleanup(); extern void Actuator_SetModeAll(ControlModes mode, void *arg); extern void Actuator_SetMode(Actuator * a, ControlModes mode, void *arg); @@ -85,6 +86,7 @@ extern Actuator * Actuator_Identify(const char * str); // Identify a Sensor from extern void Actuator_Handler(FCGIContext *context, char * params); // Handle a FCGI request for Actuator control extern const char * Actuator_GetName(int id); +extern DataPoint Actuator_LastData(int id); #endif //_ACTUATOR_H