diff options
Diffstat (limited to 'src/Utility/JsonHelper.h')
| -rw-r--r-- | src/Utility/JsonHelper.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Utility/JsonHelper.h b/src/Utility/JsonHelper.h new file mode 100644 index 0000000..62034b8 --- /dev/null +++ b/src/Utility/JsonHelper.h @@ -0,0 +1,17 @@ +#ifndef JSONHELPER_H +#define JSONHELPER_H + +#include <stddef.h> + +typedef struct { + double values[256]; + char keys[256][32]; + size_t count; +} JsonFloatMap; + +int json_parse_float_map(const char *json, const char *target_key, + JsonFloatMap *result); +double json_get_float(const char *json, const char *key); +char *json_get_string(const char *json, const char *key); + +#endif |
