path: root/src/survive_config.h
diff options
Diffstat (limited to 'src/survive_config.h')
1 files changed, 8 insertions, 1 deletions
diff --git a/src/survive_config.h b/src/survive_config.h
index 23d80c8..37e904c 100644
--- a/src/survive_config.h
+++ b/src/survive_config.h
@@ -26,18 +26,20 @@ typedef struct {
} numeric;
char *data;
uint32_t elements;
+ int shorthand_place;
} config_entry;
typedef struct config_group {
config_entry *config_entries;
uint16_t used_entries;
uint16_t max_entries;
+ SurviveContext * ctx;
} config_group;
//extern config_group global_config_values;
//extern config_group lh_config[2]; //lighthouse configs
-void init_config_group(config_group *cg, uint8_t count);
+void init_config_group(config_group *cg, uint8_t count, SurviveContext * ctx);
void destroy_config_group(config_group* cg);
//void config_init();
@@ -60,4 +62,9 @@ uint16_t config_read_float_array(config_group *cg, const char *tag, FLT* values,
uint32_t config_read_uint32(config_group *cg, const char *tag, const uint32_t def);
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_populate_ctx( SurviveContext * ctx );