aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@inria.fr>2026-05-03 21:42:52 +0200
committerTristan Riehs <tristan.riehs@inria.fr>2026-05-03 21:42:52 +0200
commit8f055cf8c4daa693b16fbd257399ab2e1ed2eed3 (patch)
treec54588bf33a320c4d5cde9a81afafc5aa2909fb5 /src/config.h
parent08f9d5ddd1233f973e6a613931f80cbebd4e39dd (diff)
Create a config module
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 82ffd6a..50cba3a 100644
--- a/src/config.h
+++ b/src/config.h
@@ -12,4 +12,20 @@
#define DATABASE_PATH FTAG_CACHE_DIR "/ftag.sqlite3"
+/* Note "FC" stands for "Ftag Config". */
+enum ftag_config_e {
+ FC_DATABASE_PATH,
+ FC_CACHE_DIR,
+ FC_REMOTE_HOST,
+ FC_REMOTE_ROOT,
+ FC_COUNT,
+ FC_FIRST = FC_DATABASE_PATH
+};
+
+void ftag_config_init(char *config_file);
+
+const char *ftag_config_get(enum ftag_config_e key);
+
+void ftag_config_destroy(void);
+
#endif