summaryrefslogtreecommitdiffstats
path: root/server/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/config.h')
-rw-r--r--server/config.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/config.h b/server/config.h
new file mode 100644
index 0000000..dc9cff1
--- /dev/null
+++ b/server/config.h
@@ -0,0 +1,13 @@
+/*
+ * server/config.h
+ */
+
+
+/*
+ * Parse the server configuration file, create a socket address
+ * structure and a tree of datasets.
+ *
+ * Returns: Number of Datasets loaded or -1 on failure.
+ */
+int parse_config_file(const char *filename, struct sockaddr_in *sockaddr,
+ void **tree);