aboutsummaryrefslogtreecommitdiff
path: root/src/survive_config.h
diff options
context:
space:
mode:
authorJoshua Allen <axlecrusher@gmail.com>2017-02-25 23:53:33 -0500
committerJoshua Allen <axlecrusher@gmail.com>2017-02-25 23:53:33 -0500
commit373ea323ce2d37b45d438cbe7299365b32240f04 (patch)
tree396c6f727e0b2739e45fceb631e1e281412afa40 /src/survive_config.h
parent7176d6099e27d07d5801b2ac04d17035b694ca66 (diff)
downloadlibsurvive-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.h9
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);