X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Foptions.h;h=8dfbfa43e0dc9e773bda54aab00215c5c8a135bd;hb=a44dc75609448e871feb189bb81f84411256f52b;hp=05f7ddf39eb122f9aa5610cd8db3556e14945230;hpb=83979aa4978c462b7479601567a874969762c07d;p=matches%2FMCTX3420.git diff --git a/server/options.h b/server/options.h index 05f7ddf..8dfbfa4 100644 --- a/server/options.h +++ b/server/options.h @@ -15,17 +15,26 @@ 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 **/ - const char * adc_device_path; + /** Whether or not to enable the pin_test module **/ + bool enable_pin; + + /** URI for authentication **/ + const char * auth_uri; - /*** Horrible horrible hack ***/ - int argc; - /*** Horrible horrible hack ***/ - char ** argv; + /** Base DN for LDAP authentication **/ + const char * ldap_base_dn; + + /** Authentication method **/ + enum {AUTH_NONE, AUTH_LDAP, AUTH_SHADOW} auth_method; + + /** Starting directory **/ + char root_dir[BUFSIZ]; + + } Options;