aboutsummaryrefslogtreecommitdiff
path: root/include/uconfig.h
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@inria.fr>2026-04-26 16:57:47 +0200
committerTristan Riehs <tristan.riehs@inria.fr>2026-04-26 16:57:47 +0200
commit0c41b30e1534e4e23a1ff15eca50247579071d83 (patch)
tree72556ee1cce3c978eeb9655f365b7f67c97d0673 /include/uconfig.h
Yet another project that will likely never be used by anyone
Diffstat (limited to 'include/uconfig.h')
-rw-r--r--include/uconfig.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/uconfig.h b/include/uconfig.h
new file mode 100644
index 0000000..415bc31
--- /dev/null
+++ b/include/uconfig.h
@@ -0,0 +1,22 @@
+#ifndef UCONFIG_H
+#define UCONFIG_H
+
+/* Uconfig - Read a Unix config file.
+
+ Each line of the config file has the form:
+ KEY = VALUE
+*/
+
+/* A Uconfig handle */
+struct uconfig_s;
+
+/* Intialize a handle using a configuration file. */
+struct uconfig_s *uconfig_new(const char *file);
+
+/* Get the value associated to KEY, or NULL if none is found. */
+const char *uconfig_get(const struct uconfig_s *uconfig, const char *key);
+
+/* Destroy the given Uconfig handle. */
+void uconfig_destroy(struct uconfig_s *uconfig);
+
+#endif