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
  * @v name		Name
841
  * @v name		Name
842
  * @ret setting		Named setting, or NULL
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
 	struct setting *setting;
845
 	struct setting *setting;
846
 
846
 
847
 	for_each_table_entry ( setting, SETTINGS ) {
847
 	for_each_table_entry ( setting, SETTINGS ) {

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

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

Loading…
Cancel
Save