From cb1f2e0c01f33f6a1d6b0dd3415e7b5d716309f6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 25 Jan 2009 17:37:45 +0100 Subject: conf: added config_add_param() The function config_add_param() allows adding new configuration parameters. --- src/conf.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/conf.h') diff --git a/src/conf.h b/src/conf.h index 42ac6f22..5e191815 100644 --- a/src/conf.h +++ b/src/conf.h @@ -91,6 +91,13 @@ void config_global_finish(void); void config_read_file(const char *file); +/** + * Adds a new configuration parameter. The name must be registered + * with registerConfigParam(). + */ +void +config_add_param(const char *name, struct config_param *param); + /* don't free the returned value set _last_ to NULL to get first entry */ struct config_param * -- cgit v1.2.3