Browse Source

[nvo] Expose nvo_applies()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 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
  * @v setting		Setting
192
  * @v setting		Setting
193
  * @ret applies		Setting applies within this settings block
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
 	return dhcpopt_applies ( setting->tag );
198
 	return dhcpopt_applies ( setting->tag );
199
 }
199
 }

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

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

Loading…
Cancel
Save