Browse Source

[settings] Expose find_child_settings()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
1c2b6d29ea
2 changed files with 4 additions and 2 deletions
  1. 2
    2
      src/core/settings.c
  2. 2
    0
      src/include/ipxe/settings.h

+ 2
- 2
src/core/settings.c View File

265
  * @v name		Name within this parent
265
  * @v name		Name within this parent
266
  * @ret settings	Settings block, or NULL
266
  * @ret settings	Settings block, or NULL
267
  */
267
  */
268
-static struct settings * find_child_settings ( struct settings *parent,
269
-					       const char *name ) {
268
+struct settings * find_child_settings ( struct settings *parent,
269
+					const char *name ) {
270
 	struct settings *settings;
270
 	struct settings *settings;
271
 
271
 
272
 	/* Treat empty name as meaning "this block" */
272
 	/* Treat empty name as meaning "this block" */

+ 2
- 0
src/include/ipxe/settings.h View File

269
 extern void clear_settings ( struct settings *settings );
269
 extern void clear_settings ( struct settings *settings );
270
 extern int setting_cmp ( struct setting *a, struct setting *b );
270
 extern int setting_cmp ( struct setting *a, struct setting *b );
271
 
271
 
272
+extern struct settings * find_child_settings ( struct settings *parent,
273
+					       const char *name );
272
 extern const char * settings_name ( struct settings *settings );
274
 extern const char * settings_name ( struct settings *settings );
273
 extern struct settings * find_settings ( const char *name );
275
 extern struct settings * find_settings ( const char *name );
274
 extern struct setting * find_setting ( const char *name );
276
 extern struct setting * find_setting ( const char *name );

Loading…
Cancel
Save