diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Restyle the sources and fix the audit's findings
Diffstat (limited to 'source/config.h')
-rw-r--r--source/config.h16
1 file changed, 16 insertions, 0 deletions
diff --git a/source/config.h b/source/config.h
new file mode 100644
index 0000000..ab42e2f
--- /dev/null
+++ b/source/config.h
@@ -0,0 +1,16 @@
+/*
+ * The interface to cgit's config file reader. A caller names a file and passes
+ * a callback that receives every name and value in it, in the order they
+ * appear.
+ */
+
+#ifndef CGIT_CONFIG_H
+#define CGIT_CONFIG_H
+
+#include "cgit.h"
+
+typedef void (*config_file_value_fn)(const char *name, const char *value);
+
+extern int config_file_parse(const char *filename, config_file_value_fn fn);
+
+#endif // CGIT_CONFIG_H