aboutsummaryrefslogtreecommitdiff
path: root/src/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h
new file mode 100644
index 0000000..23cab9a
--- /dev/null
+++ b/src/json.h
@@ -0,0 +1,16 @@
+#ifndef __JSON
+#define __JSON
+#include <stdio.h>
+#include <stdlib.h>
+#include <assert.h>
+#include <string.h>
+
+typedef struct {
+ float price;
+ float area;
+ float latitude;
+ float longitude;
+} HouseItem;
+
+void json_read(const char *filepath, HouseItem *out);
+#endif
Feel free to download, copy and edit any repo