aboutsummaryrefslogtreecommitdiff
path: root/redist/json_helpers.h
diff options
context:
space:
mode:
authorJoshua Allen <axlecrusher@gmail.com>2017-02-26 10:13:31 -0500
committerJoshua Allen <axlecrusher@gmail.com>2017-02-26 10:13:31 -0500
commitcab4ee6f89a661190b2bd80c30e42d5f45614f20 (patch)
treef7c27e29c1486ab28020eee2a61e935753e37d23 /redist/json_helpers.h
parent373ea323ce2d37b45d438cbe7299365b32240f04 (diff)
downloadlibsurvive-cab4ee6f89a661190b2bd80c30e42d5f45614f20.tar.gz
libsurvive-cab4ee6f89a661190b2bd80c30e42d5f45614f20.tar.bz2
json helpers for writing
Diffstat (limited to 'redist/json_helpers.h')
-rw-r--r--redist/json_helpers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/redist/json_helpers.h b/redist/json_helpers.h
new file mode 100644
index 0000000..8d6eb64
--- /dev/null
+++ b/redist/json_helpers.h
@@ -0,0 +1,14 @@
+// (C) 2017 <>< Joshua Allen, Under MIT/x11 License.
+
+#ifndef JSON_HELPERS_H
+#define JSON_HELPERS_H
+
+#include <stdint.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);
+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);
+
+#endif \ No newline at end of file