summaryrefslogtreecommitdiffstats
path: root/src/core/settings.c
diff options
context:
space:
mode:
authorMichael Brown2013-07-18 15:44:09 +0200
committerMichael Brown2013-07-19 15:25:41 +0200
commit5ffcae69c03afeab1c7b17a725376b45c91d04d9 (patch)
tree6bf9efa53f5fb94a2fa7c437205da373082d2de8 /src/core/settings.c
parent[settings] Remove default_type parameter from parse_setting_name() (diff)
downloadipxe-5ffcae69c03afeab1c7b17a725376b45c91d04d9.tar.gz
ipxe-5ffcae69c03afeab1c7b17a725376b45c91d04d9.tar.xz
ipxe-5ffcae69c03afeab1c7b17a725376b45c91d04d9.zip
[settings] Expose parse_setting_name()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/settings.c')
-rw-r--r--src/core/settings.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/core/settings.c b/src/core/settings.c
index c85ea61d..a0a09d4e 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -295,8 +295,8 @@ struct settings * find_child_settings ( struct settings *parent,
* @v name Name within this parent
* @ret settings Settings block, or NULL
*/
-static struct settings * autovivify_child_settings ( struct settings *parent,
- const char *name ) {
+struct settings * autovivify_child_settings ( struct settings *parent,
+ const char *name ) {
struct {
struct autovivified_settings autovivified;
char name[ strlen ( name ) + 1 /* NUL */ ];
@@ -356,9 +356,7 @@ const char * settings_name ( struct settings *settings ) {
* @ret settings Settings block, or NULL
*/
static struct settings *
-parse_settings_name ( const char *name,
- struct settings * ( * get_child ) ( struct settings *,
- const char * ) ) {
+parse_settings_name ( const char *name, get_child_settings_t get_child ) {
struct settings *settings = &settings_root;
char name_copy[ strlen ( name ) + 1 ];
char *subname;
@@ -1205,12 +1203,8 @@ static struct setting_type * find_setting_type ( const char *name ) {
* Note that on success, this function will have modified the original
* setting @c name.
*/
-static int
-parse_setting_name ( char *name,
- struct settings * ( * get_child )
- ( struct settings *settings,
- const char *name ),
- struct settings **settings, struct setting *setting ) {
+int parse_setting_name ( char *name, get_child_settings_t get_child,
+ struct settings **settings, struct setting *setting ) {
char *settings_name;
char *setting_name;
char *type_name;