aboutsummaryrefslogtreecommitdiff
path: root/redist/json_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'redist/json_helpers.h')
-rw-r--r--redist/json_helpers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/redist/json_helpers.h b/redist/json_helpers.h
index 1cccfe3..3ebf66b 100644
--- a/redist/json_helpers.h
+++ b/redist/json_helpers.h
@@ -4,6 +4,8 @@
#define JSON_HELPERS_H
#include <stdint.h>
+#include <jsmn.h>
+#include "survive_types.h"
void json_write_float_array(FILE* f, const char* tag, float* v, uint8_t count);
void json_write_double_array(FILE* f, const char* tag, double* v, uint8_t count);
@@ -11,6 +13,8 @@ void json_write_uint32(FILE* f, const char* tag, uint32_t v);
void json_write_float(FILE* f, const char* tag, float v);
void json_write_str(FILE* f, const char* tag, const char* v);
+int parse_float_array(char* str, jsmntok_t* token, FLT** values, uint8_t count);
+
void json_load_file(const char* path);
extern void (*json_begin_object)(char* tag);
extern void (*json_end_object)();