aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-08-27 11:25:55 -0400
committerRaghuram Subramani <raghus2247@gmail.com>2025-08-27 11:25:55 -0400
commit1760d67f85c47b74a4b7b5d2d73c30f589dd704a (patch)
tree31aa75cd4e1e889b2ec80381f841e1c3ed677b61
parent4cbb756c732ddea66d395923cc07c0d763024f97 (diff)
config: add documentation for config_t
-rw-r--r--include/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 924f606..a5edcc9 100644
--- a/include/config.h
+++ b/include/config.h
@@ -24,6 +24,12 @@
#define DELIM "="
#define DELIM_ARRAY ","
+/*
+ * Each config has a list of "top-level keys", with corresponding values.
+ * Simple string values are stored in the values array, with array-values being
+ * stored in array_values. When a key has an array value, its corresponding
+ * entry in values is NULL, and vice versa with simple string values.
+ */
typedef struct {
list_t *keys;
list_t *values;