summaryrefslogtreecommitdiffstats
path: root/conf.h
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-11-16 16:51:30 -0500
committerDave Reisner <dreisner@archlinux.org>2014-11-16 16:54:30 -0500
commitc16a1cea13c70e9c40a8db82d561e71bd04f404f (patch)
tree1adf263ea9a8b1d7b2f84d0e858571a4888606f2 /conf.h
parent13145a3957ac029fc5e3f538f676c0075255822d (diff)
downloadexpac-c16a1cea13c70e9c40a8db82d561e71bd04f404f.tar.xz
Reorg a bit, introduce a control struct
Diffstat (limited to 'conf.h')
-rw-r--r--conf.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/conf.h b/conf.h
new file mode 100644
index 0000000..1ce6a17
--- /dev/null
+++ b/conf.h
@@ -0,0 +1,15 @@
+#ifndef _CONF_H
+#define _CONF_H
+
+typedef struct config_t {
+ char **repos;
+ int size;
+ int capacity;
+} config_t;
+
+int config_parse(config_t *config, const char *filename);
+void config_reset(config_t *config);
+
+#endif /* _CONF_H */
+
+/* vim: set et ts=2 sw=2: */