Sfoglia il codice sorgente

[settings] Expose find_child_settings()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 anni fa
parent
commit
1c2b6d29ea
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 2
    2
      src/core/settings.c
  2. 2
    0
      src/include/ipxe/settings.h

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

@@ -265,8 +265,8 @@ static void autovivified_settings_free ( struct refcnt *refcnt ) {
265 265
  * @v name		Name within this parent
266 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 270
 	struct settings *settings;
271 271
 
272 272
 	/* Treat empty name as meaning "this block" */

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

@@ -269,6 +269,8 @@ extern int fetch_uuid_setting ( struct settings *settings,
269 269
 extern void clear_settings ( struct settings *settings );
270 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 274
 extern const char * settings_name ( struct settings *settings );
273 275
 extern struct settings * find_settings ( const char *name );
274 276
 extern struct setting * find_setting ( const char *name );

Loading…
Annulla
Salva