aboutsummaryrefslogtreecommitdiff
path: root/src/ini.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ini.h')
-rw-r--r--src/ini.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ini.h b/src/ini.h
new file mode 100644
index 0000000..12f4228
--- /dev/null
+++ b/src/ini.h
@@ -0,0 +1,13 @@
+#ifndef INI_H
+#define INI_H
+
+#include <stdio.h>
+
+#define INI_UNKNOWN 0
+#define INI_VALUE 1
+#define INI_SECTION 2
+
+int parse_ini_file(FILE* f, char *out_key, size_t key_size, char *out_value, size_t value_size);
+int parse_ini_str(const char* str, char *out_key, size_t key_size, char *out_value, size_t value_size);
+
+#endif