summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h b/config.h
index 2f2db9f..d478480 100644
--- a/config.h
+++ b/config.h
@@ -40,6 +40,12 @@
// getconfstr() returns.
int getconfstr(char *confname, char *filename, char* dest);
+// Populates 'dest' with the values of the configuration array option
+// with name 'confname' from configuration file 'filename'.
+// Returns 1 on success, 0 on reading no values, or -1 on an error.
+// On error, dest[0] is set to the error string for later retrieval.
+int getconfarr(char *confname, char *filename, char dest[MAXCONFARR][MAXDATASIZE]);
+
// Returns the value of the configuration option with name
// 'confname' from configuration file 'filename'.
// Sets errno to 0 on success, or ECONFINT if it fails, in which case the return value is undefined.