Pārlūkot izejas kodu

[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 gadus atpakaļ
vecāks
revīzija
380d7c8d45
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/core/settings.c
  2. 1
    0
      src/include/ipxe/settings.h

+ 1
- 1
src/core/settings.c Parādīt failu

@@ -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 Parādīt failu

@@ -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,

Notiek ielāde…
Atcelt
Saglabāt