aboutsummaryrefslogtreecommitdiff
path: root/src/survive_config.h
diff options
context:
space:
mode:
authorcnlohr <charles@cnlohr.com>2018-04-27 21:42:05 -0400
committercnlohr <charles@cnlohr.com>2018-04-27 21:42:05 -0400
commit86bbd12c3889db3290e22ff61934ca1a218ce114 (patch)
tree6d7c895a86f7cd88d0b7b3e0a461ccd5c2efa8b7 /src/survive_config.h
parent76e1d700bf2b3eac225e3965bb562e16e3615fd5 (diff)
downloadlibsurvive-86bbd12c3889db3290e22ff61934ca1a218ce114.tar.gz
libsurvive-86bbd12c3889db3290e22ff61934ca1a218ce114.tar.bz2
New config system
Diffstat (limited to 'src/survive_config.h')
-rw-r--r--src/survive_config.h17
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