aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-git-receiver/settings.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-05-30 23:53:26 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-05-30 23:53:26 +0200
commit316bd60579ea11daca4fa25e2720b7fa147cc7ba (patch)
treeaa53a0daefe10e4d4f58f04af483db5094611a65 /src/blogc-git-receiver/settings.h
parent9acec235a6c47c3bede917187808a8acd1369050 (diff)
downloadblogc-316bd60579ea11daca4fa25e2720b7fa147cc7ba.tar.gz
blogc-316bd60579ea11daca4fa25e2720b7fa147cc7ba.tar.bz2
blogc-316bd60579ea11daca4fa25e2720b7fa147cc7ba.zip
git-receiver: centralize settings to reuse later
Diffstat (limited to 'src/blogc-git-receiver/settings.h')
-rw-r--r--src/blogc-git-receiver/settings.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/blogc-git-receiver/settings.h b/src/blogc-git-receiver/settings.h
new file mode 100644
index 0000000..1b89d0f
--- /dev/null
+++ b/src/blogc-git-receiver/settings.h
@@ -0,0 +1,18 @@
+/*
+ * blogc: A blog compiler.
+ * Copyright (C) 2014-2017 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+ *
+ * This program can be distributed under the terms of the BSD License.
+ * See the file LICENSE.
+ */
+
+#ifndef _SETTINGS_H
+#define _SETTINGS_H
+
+#include "../common/config-parser.h"
+
+const char* bgr_settings_get_basedir(void);
+char* bgr_settings_get_section(bc_config_t *config, const char *repo_path);
+bc_config_t* bgr_settings_parse(void);
+
+#endif /* _SETTINGS_H */