Add usleep to strain.c just in case...
[matches/MCTX3420.git] / server / options.h
1 /**
2  * @file options.h
3  * @brief Define the Options structure and the g_options variable
4  */
5
6 #ifndef _OPTIONS_H
7 #define _OPTIONS_H
8
9
10 /** Store options passed or calculated from arguments to the program **/
11 typedef struct
12 {
13         /** Name of program **/
14         const char * program;
15         /** Determines at what level log messages are shown **/
16         int verbosity;
17         /** Time at which program begins to run **/
18         struct timespec start_time;
19         /** Time at which program exits **/
20         struct timespec end_time;
21
22         /** Whether or not to enable the pin_test module **/
23         bool enable_pin;
24         
25         /** URI for authentication **/
26         const char * auth_uri;
27
28         /** Additional options for authentication (to be parsed in Login_Handler) **/
29         const char * auth_options;
30
31         /** Authentication method **/
32         enum {AUTH_NONE, AUTH_LDAP, AUTH_SHADOW, AUTH_MYSQL} auth_method;
33
34         /** Experiments directory **/
35         const char *experiment_dir;
36 } Options;
37
38 /** The only instance of the Options struct **/
39 extern Options g_options;
40
41 #endif //_OPTIONS_H

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