diff options
author | Joshua Allen <axlecrusher@gmail.com> | 2017-02-25 23:53:33 -0500 |
---|---|---|
committer | Joshua Allen <axlecrusher@gmail.com> | 2017-02-25 23:53:33 -0500 |
commit | 373ea323ce2d37b45d438cbe7299365b32240f04 (patch) | |
tree | 396c6f727e0b2739e45fceb631e1e281412afa40 /src/survive_config.h | |
parent | 7176d6099e27d07d5801b2ac04d17035b694ca66 (diff) | |
download | libsurvive-373ea323ce2d37b45d438cbe7299365b32240f04.tar.gz libsurvive-373ea323ce2d37b45d438cbe7299365b32240f04.tar.bz2 |
some progress on json file writing
Diffstat (limited to 'src/survive_config.h')
-rw-r--r-- | src/survive_config.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/survive_config.h b/src/survive_config.h index 24762cd..3e62ec8 100644 --- a/src/survive_config.h +++ b/src/survive_config.h @@ -10,7 +10,8 @@ typedef enum { CONFIG_UNKNOWN = 0, CONFIG_FLOAT = 1, CONFIG_UINT32 = 2, - CONFIG_STRING = 3 + CONFIG_STRING = 3, + CONFIG_FLOAT_ARRAY = 4, } cval_type; /* typedef union { @@ -25,13 +26,15 @@ typedef struct { uint32_t i; FLT f; } numeric; - char *str; + char *data; + uint32_t elements; } config_val; - +void config_init(); void config_open(const char* path, const char* mode); void config_close(); void config_write_lighthouse(struct BaseStationData* bsd, uint8_t length); +void config_set_lighthouse(struct BaseStationData* bsd, uint8_t idx); void config_save(const char* path); const FLT config_set_float(const char *tag, const FLT value); |