diff options
| author | Michael Brown | 2012-10-15 04:08:12 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-10-15 19:32:16 +0200 |
| commit | 1c2b6d29ea0eae83da627aca560f5e4a5d521fe4 (patch) | |
| tree | 7c9b68d5641012fb6cef1042d2bc5c41601255f4 | |
| parent | [libc] Add wcslen() function (diff) | |
| download | ipxe-1c2b6d29ea0eae83da627aca560f5e4a5d521fe4.tar.gz ipxe-1c2b6d29ea0eae83da627aca560f5e4a5d521fe4.tar.xz ipxe-1c2b6d29ea0eae83da627aca560f5e4a5d521fe4.zip | |
[settings] Expose find_child_settings()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
| -rw-r--r-- | src/core/settings.c | 4 | ||||
| -rw-r--r-- | src/include/ipxe/settings.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/settings.c b/src/core/settings.c index 20b7f949e..9b5bc0545 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -265,8 +265,8 @@ static void autovivified_settings_free ( struct refcnt *refcnt ) { * @v name Name within this parent * @ret settings Settings block, or NULL */ -static struct settings * find_child_settings ( struct settings *parent, - const char *name ) { +struct settings * find_child_settings ( struct settings *parent, + const char *name ) { struct settings *settings; /* Treat empty name as meaning "this block" */ diff --git a/src/include/ipxe/settings.h b/src/include/ipxe/settings.h index a81e5ccfc..68987bdd6 100644 --- a/src/include/ipxe/settings.h +++ b/src/include/ipxe/settings.h @@ -269,6 +269,8 @@ extern int fetch_uuid_setting ( struct settings *settings, extern void clear_settings ( struct settings *settings ); extern int setting_cmp ( struct setting *a, struct setting *b ); +extern struct settings * find_child_settings ( struct settings *parent, + const char *name ); extern const char * settings_name ( struct settings *settings ); extern struct settings * find_settings ( const char *name ); extern struct setting * find_setting ( const char *name ); |
