diff options
author | Justin Berger <jdavidberger@gmail.com> | 2018-06-27 04:22:22 +0000 |
---|---|---|
committer | Justin Berger <jdavidberger@gmail.com> | 2018-06-27 04:22:22 +0000 |
commit | cf36bd58b8c9d1c23ccfe1a52beafe376ba02e6b (patch) | |
tree | bae72f9ebe6937dbbabb7beec3115028a15743b0 /src/survive_config.h | |
parent | 902bbde43fb6e000140da0da56c05f2d4af1df5f (diff) | |
parent | e68b69a9a14aeb70988c52666e60502fe6f049ab (diff) | |
download | libsurvive-cf36bd58b8c9d1c23ccfe1a52beafe376ba02e6b.tar.gz libsurvive-cf36bd58b8c9d1c23ccfe1a52beafe376ba02e6b.tar.bz2 |
Merge remote-tracking branch 'origin/master' into fix_wired_tracker
Diffstat (limited to 'src/survive_config.h')
-rw-r--r-- | src/survive_config.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/survive_config.h b/src/survive_config.h index 37e904c..3f823b0 100644 --- a/src/survive_config.h +++ b/src/survive_config.h @@ -16,6 +16,14 @@ typedef enum { CONFIG_FLOAT_ARRAY = 4, } cval_type; +struct update_list_t_s +{ + void * value; + struct update_list_t_s * next; +}; + +typedef struct update_list_t_s update_list_t; + typedef struct { char *tag; @@ -26,7 +34,8 @@ typedef struct { } numeric; char *data; uint32_t elements; - int shorthand_place; + + update_list_t * update_list; } config_entry; typedef struct config_group { @@ -63,8 +72,10 @@ uint32_t config_read_uint32(config_group *cg, const char *tag, const uint32_t de const char* config_read_str(config_group *cg, const char *tag, const char *def); //These are for the internal non-function configuration system. -void survive_config_bind_variable( char vt, int * variable, const char * name, const char * description, ... ); -void survive_print_known_configs(); +void survive_config_bind_variable( char vt, const char * name, const char * description, ... ); +void survive_print_known_configs( SurviveContext * ctx, int verbose ); void survive_config_populate_ctx( SurviveContext * ctx ); +int survive_print_help_for_parameter( const char * tomap ); + #endif |