X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Foptions.h;h=f702e010bf1799beba84b534f355efb188ea461a;hb=6ed8c8a41104d50a699c20c5310a61656fb593e4;hp=66cad6c67d8e7b8f6c5613652d7105025cfc0a8a;hpb=b1a8334f97f84e10ee9cef96377bbdcfbf5f945c;p=matches%2FMCTX3420.git diff --git a/server/options.h b/server/options.h index 66cad6c..f702e01 100644 --- a/server/options.h +++ b/server/options.h @@ -1,18 +1,35 @@ /** * @file options.h - * @purpose Declaration of structure to handle options passed to program + * @brief Define the Options structure and the g_options variable */ #ifndef _OPTIONS_H #define _OPTIONS_H + +/** Store options passed or calculated from arguments to the program **/ typedef struct { - const char * program; //name of program - int verbosity; // verbosity level + /** Name of program **/ + const char * program; + /** Determines at what level log messages are shown **/ + int verbosity; + /** Time at which program begins to run **/ + struct timeval start_time; + /** Time at which program exits **/ + struct timeval end_time; + + /** Path to ADC files **/ + char * adc_device_path; + + /*** Horrible horrible hack ***/ + int argc; + /*** Horrible horrible hack ***/ + char ** argv; } Options; -extern Options g_options; // global options structure +/** The only instance of the Options struct **/ +extern Options g_options; #endif //_OPTIONS_H