X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Foptions.h;h=88496cc7a919d3bd6a369bc0164d0edb66b40060;hb=0654fb285c91da103314610cd4f27295e3da38f3;hp=0416dd5e80686a390293c7ba8af401700b0da8a3;hpb=9c4ecb96f8eb05d44786fe75d5fd0fb8d288b401;p=matches%2FMCTX3420.git diff --git a/server/options.h b/server/options.h index 0416dd5..88496cc 100644 --- a/server/options.h +++ b/server/options.h @@ -15,13 +15,24 @@ typedef struct /** Determines at what level log messages are shown **/ int verbosity; /** Time at which program begins to run **/ - struct timeval start_time; + struct timespec start_time; /** Time at which program exits **/ - struct timeval end_time; + struct timespec end_time; - /** Path to ADC files **/ - char * adc_device_path; + /** Whether or not to enable the pin_test module **/ + bool enable_pin; + + /** URI for authentication **/ + const char * auth_uri; + /** Additional options for authentication (to be parsed in Login_Handler) **/ + const char * auth_options; + + /** Authentication method **/ + enum {AUTH_NONE, AUTH_LDAP, AUTH_SHADOW, AUTH_MYSQL} auth_method; + + /** Experiments directory **/ + const char *experiment_dir; } Options; /** The only instance of the Options struct **/