0dfdc47c4a8a191884606f7320cc439222e04321
[matches/MCTX3420.git] / server / control.h
1 /**
2  * @file control.h
3  * @brief Header file for control functions
4  */
5 #ifndef _CONTROL_H
6 #define _CONTROL_H
7
8 typedef enum ControlModes {
9         CONTROL_START,
10         CONTROL_PAUSE,
11         CONTROL_RESUME,
12         CONTROL_STOP,
13         CONTROL_EMERGENCY
14 } ControlModes;
15
16 /** Invalid filename characters **/
17 #define INVALID_CHARACTERS "\"*/:<>?\\|. "
18 /** The same as INVALID_CHARACTERS, except escaped for use in JSON strings **/
19 #define INVALID_CHARACTERS_JSON "\\\"*/:<>?\\\\|. "
20
21 #define NOAUTH_USERNAME "_anonymous_noauth"
22
23 extern void Control_Handler(FCGIContext *context, char *params);
24 extern const char* Control_SetMode(ControlModes desired_mode, void * arg);
25 extern ControlModes Control_GetMode();
26 extern const char * Control_GetModeName();
27 //extern bool Control_Lock();
28 //extern void Control_Unlock();
29 extern const struct timespec* Control_GetStartTime();
30
31 #endif

UCC git Repository :: git.ucc.asn.au