diff options
author | CNLohr <charles@cnlohr.com> | 2018-03-18 22:01:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-18 22:01:56 -0400 |
commit | 7a3bd58da56f2072a059cfb147ee23616924b832 (patch) | |
tree | 578b865dc5037d5dbaa074458d7c0b542550e914 /src/survive_config.h | |
parent | d4466fa46e88d9d146ae3116004f74c9beda50f7 (diff) | |
parent | 0996cfcee351bfd665f48a205d2f7fe37dec336c (diff) | |
download | libsurvive-7a3bd58da56f2072a059cfb147ee23616924b832.tar.gz libsurvive-7a3bd58da56f2072a059cfb147ee23616924b832.tar.bz2 |
Merge pull request #115 from cnlohr/charles_statbiguator
Charles statbiguator
Diffstat (limited to 'src/survive_config.h')
-rw-r--r-- | src/survive_config.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/survive_config.h b/src/survive_config.h index e2686e9..23d80c8 100644 --- a/src/survive_config.h +++ b/src/survive_config.h @@ -1,5 +1,7 @@ // (C) 2017 <>< Joshua Allen, Under MIT/x11 License. - +// +// This header is for handling internal parameter values. Most accesses should be done through functions like survive_config +// #ifndef _SURVIVE_CONFIG_H #define _SURVIVE_CONFIG_H @@ -52,6 +54,7 @@ const FLT config_set_float(config_group *cg, const char *tag, const FLT value); const uint32_t config_set_uint32(config_group *cg, const char *tag, const uint32_t value); const char* config_set_str(config_group *cg, const char *tag, const char* value); +//These functions look for a parameter in a specific group, and then chose the best to return. If the parameter does not exist, default will be written. FLT config_read_float(config_group *cg, const char *tag, const FLT def); uint16_t config_read_float_array(config_group *cg, const char *tag, FLT* values, const FLT* def, uint8_t count); uint32_t config_read_uint32(config_group *cg, const char *tag, const uint32_t def); |