Merge branch 'master' of github:szmoore/MCTX3420
[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 extern void Control_Handler(FCGIContext *context, char *params);
22 extern const char* Control_SetMode(ControlModes desired_mode, void * arg);
23 extern ControlModes Control_GetMode();
24 extern const char * Control_GetModeName();
25 //extern bool Control_Lock();
26 //extern void Control_Unlock();
27 extern const struct timespec* Control_GetStartTime();
28
29 #endif

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