3 * @brief Header file for control functions
9 * The possible experiment control modes that the server can be in.
10 * At present, CONTROL_EMERGENCY largely does nothing. TODO: Fix this
12 typedef enum ControlModes {
20 /** Invalid filename characters **/
21 #define INVALID_CHARACTERS "\"*/:<>?\\|. "
22 /** The same as INVALID_CHARACTERS, except escaped for use in JSON strings **/
23 #define INVALID_CHARACTERS_JSON "\\\"*/:<>?\\\\|. "
24 /** The username of a user with no authentication (DEBUG ONLY) **/
25 #define NOAUTH_USERNAME "_anonymous_noauth"
27 extern void Control_Handler(FCGIContext *context, char *params);
28 extern const char* Control_SetMode(ControlModes desired_mode, void * arg);
29 //extern ControlModes Control_GetMode();
30 extern const char * Control_GetModeName();
31 //extern bool Control_Lock();
32 //extern void Control_Unlock();
33 extern const struct timespec* Control_GetStartTime();