00001 /* -*-C-*- */ 00002 #ifndef OPTIONS_H 00003 #define OPTIONS_H 00004 00005 #define OPTIONS_LEN_USER_NAME 64 00006 #define OPTIONS_LEN_CONFIG_FILE 512 00016 typedef struct 00017 { 00018 00019 int set_debug_enabled; 00020 int set_user; 00021 int set_config_file; 00022 int set_ioperm; 00023 int debug_level; 00024 char config_file[OPTIONS_LEN_CONFIG_FILE]; 00025 char user_name[OPTIONS_LEN_USER_NAME]; 00028 } Options; 00029 00030 void options_set_defaults(Options *opt); 00031 Options *options_create(); 00032 void options_read(Options *opt, int argc, char **argv); 00033 Options *options_create_from_args(int argc, char **argv); 00034 00035 #endif