]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[nvo] Expose nvo_applies()
authorMichael Brown <mcb30@ipxe.org>
Mon, 15 Oct 2012 11:41:51 +0000 (12:41 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 15 Oct 2012 17:32:16 +0000 (18:32 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/nvo.c
src/include/ipxe/nvo.h

index 11074e6747b36a3625d5958916e479f367ff1a91..5383fe5c3681a052fef0538ecc30f14f28a5a09d 100644 (file)
@@ -192,8 +192,8 @@ static int nvo_save ( struct nvo_block *nvo ) {
  * @v setting          Setting
  * @ret applies                Setting applies within this settings block
  */
-static int nvo_applies ( struct settings *settings __unused,
-                        struct setting *setting ) {
+int nvo_applies ( struct settings *settings __unused,
+                 struct setting *setting ) {
 
        return dhcpopt_applies ( setting->tag );
 }
index 36f4150578b3529e38a7a5723c8dd5bea1d56cee..487f8b3f2077a3d902e34a87c43ddc71886576cc 100644 (file)
@@ -45,6 +45,7 @@ struct nvo_block {
 /** Name of non-volatile options settings block */
 #define NVO_SETTINGS_NAME "nvo"
 
+extern int nvo_applies ( struct settings *settings, struct setting *setting );
 extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
                       size_t address, size_t len,
                       int ( * resize ) ( struct nvo_block *nvo, size_t len ),