From: Michael Brown Date: Mon, 15 Oct 2012 02:08:41 +0000 (+0100) Subject: [nvo] Expose non-volatile options block name X-Git-Tag: v1.20.1~1627 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08a6ae86a2ddafe51fa64e8f40a4c89cd613ecfb;p=thirdparty%2Fipxe.git [nvo] Expose non-volatile options block name Signed-off-by: Michael Brown --- diff --git a/src/core/nvo.c b/src/core/nvo.c index ffa30b896..11074e674 100644 --- a/src/core/nvo.c +++ b/src/core/nvo.c @@ -296,7 +296,8 @@ int register_nvo ( struct nvo_block *nvo, struct settings *parent ) { goto err_load; /* Register settings */ - if ( ( rc = register_settings ( &nvo->settings, parent, "nvo" ) ) != 0 ) + if ( ( rc = register_settings ( &nvo->settings, parent, + NVO_SETTINGS_NAME ) ) != 0 ) goto err_register; DBGC ( nvo, "NVO %p registered\n", nvo ); diff --git a/src/include/ipxe/nvo.h b/src/include/ipxe/nvo.h index 995afd749..36f415057 100644 --- a/src/include/ipxe/nvo.h +++ b/src/include/ipxe/nvo.h @@ -42,6 +42,9 @@ struct nvo_block { struct dhcp_options dhcpopts; }; +/** Name of non-volatile options settings block */ +#define NVO_SETTINGS_NAME "nvo" + 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 ),