소스 검색

[settings] Expose find_child_settings()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 년 전
부모
커밋
1c2b6d29ea
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/core/settings.c
  2. 2
    0
      src/include/ipxe/settings.h

+ 2
- 2
src/core/settings.c 파일 보기

@@ -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 파일 보기

@@ -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…
취소
저장