aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/config.h b/src/config.h
index 649278d..2c5e364 100644
--- a/src/config.h
+++ b/src/config.h
@@ -7,8 +7,6 @@
*
* Parses configuration files with one key=value pair per line.
* Lines starting with '#' are comments. Blank lines are ignored.
- * Repeated keys are allowed (used for list-valued settings like
- * trustList).
*/
#include <stddef.h>
@@ -28,8 +26,7 @@ typedef struct
/**
* @brief A parsed configuration file.
*
- * Holds a dynamic array of ConfigEntry items. Duplicate keys are
- * allowed (used for list-valued settings like trustList).
+ * Holds a dynamic array of ConfigEntry items.
*/
typedef struct
{
@@ -92,22 +89,6 @@ const char *configRequire (const Config *cfg, const char *key,
int configRequireInt (const Config *cfg, const char *key, const char *program);
/**
- * @brief Collects all values for a repeated key.
- *
- * Allocates an array of char* pointers to the values stored
- * in @p cfg. The caller must free the array itself (but not
- * the strings, which are owned by cfg).
- *
- * @param cfg The parsed configuration.
- * @param key The key to collect (e.g. "trustList").
- * @param out Output: heap-allocated array of string pointers.
- * Set to NULL if the key is not present.
- * @param size Output: number of entries in @p out.
- */
-void configGetAll (const Config *cfg, const char *key, char ***out,
- size_t *size);
-
-/**
* @brief Frees all memory owned by a Config structure.
*
* After this call the Config is zeroed and must not be used