Browse Source

[settings] Export find_setting()

Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Piotr Jaroszyński 14 years ago
parent
commit
380d7c8d45
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      src/core/settings.c
  2. 1
    0
      src/include/ipxe/settings.h

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

@@ -841,7 +841,7 @@ int storef_setting ( struct settings *settings, struct setting *setting,
841 841
  * @v name		Name
842 842
  * @ret setting		Named setting, or NULL
843 843
  */
844
-static struct setting * find_setting ( const char *name ) {
844
+struct setting * find_setting ( const char *name ) {
845 845
 	struct setting *setting;
846 846
 
847 847
 	for_each_table_entry ( setting, SETTINGS ) {

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

@@ -210,6 +210,7 @@ extern void clear_settings ( struct settings *settings );
210 210
 extern int setting_cmp ( struct setting *a, struct setting *b );
211 211
 
212 212
 extern struct settings * find_settings ( const char *name );
213
+extern struct setting * find_setting ( const char *name );
213 214
 
214 215
 extern int storef_setting ( struct settings *settings,
215 216
 			    struct setting *setting,

Loading…
Cancel
Save