Browse Source

[nvo] Expose nvo_applies()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
0fd29e15b5
2 changed files with 3 additions and 2 deletions
  1. 2
    2
      src/core/nvo.c
  2. 1
    0
      src/include/ipxe/nvo.h

+ 2
- 2
src/core/nvo.c View File

@@ -192,8 +192,8 @@ static int nvo_save ( struct nvo_block *nvo ) {
192 192
  * @v setting		Setting
193 193
  * @ret applies		Setting applies within this settings block
194 194
  */
195
-static int nvo_applies ( struct settings *settings __unused,
196
-			 struct setting *setting ) {
195
+int nvo_applies ( struct settings *settings __unused,
196
+		  struct setting *setting ) {
197 197
 
198 198
 	return dhcpopt_applies ( setting->tag );
199 199
 }

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

@@ -45,6 +45,7 @@ struct nvo_block {
45 45
 /** Name of non-volatile options settings block */
46 46
 #define NVO_SETTINGS_NAME "nvo"
47 47
 
48
+extern int nvo_applies ( struct settings *settings, struct setting *setting );
48 49
 extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
49 50
 		       size_t address, size_t len,
50 51
 		       int ( * resize ) ( struct nvo_block *nvo, size_t len ),

Loading…
Cancel
Save