diff options
author | cnlohr <lohr85@gmail.com> | 2018-06-23 14:18:26 -0400 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2018-06-23 14:18:26 -0400 |
commit | 1dea63123ca6735cee354f3eeae69e2e62d61e3b (patch) | |
tree | a93f86d0f33ad91b4c34f975b55ae54415e8f6c1 /src/survive_config.h | |
parent | 87b6229f6fc4e434b9472e6c7722e40497ac97a1 (diff) | |
parent | 5329e026dfb52f904965b687a717cc4c24f2cd8c (diff) | |
download | libsurvive-1dea63123ca6735cee354f3eeae69e2e62d61e3b.tar.gz libsurvive-1dea63123ca6735cee354f3eeae69e2e62d61e3b.tar.bz2 |
Merge branch 'new_config_system'
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 |