]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[settings] Expose find_child_settings()
authorMichael Brown <mcb30@ipxe.org>
Mon, 15 Oct 2012 02:08:12 +0000 (03:08 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 15 Oct 2012 17:32:16 +0000 (18:32 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/settings.c
src/include/ipxe/settings.h

index 20b7f949eb339c9ed85da495842ee69648ed8070..9b5bc0545fea7708625edda1d4af179cc7ff1075 100644 (file)
@@ -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" */
index a81e5ccfcb89609d5ed95317d678d8199ef21317..68987bdd63ea903e146e3974add08d77921b1a36 100644 (file)
@@ -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 );