mirror of https://github.com/ipxe/ipxe.git
[nvo] Expose nvo_applies()
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/598/head
parent
08a6ae86a2
commit
0fd29e15b5
|
@ -192,8 +192,8 @@ static int nvo_save ( struct nvo_block *nvo ) {
|
||||||
* @v setting Setting
|
* @v setting Setting
|
||||||
* @ret applies Setting applies within this settings block
|
* @ret applies Setting applies within this settings block
|
||||||
*/
|
*/
|
||||||
static int nvo_applies ( struct settings *settings __unused,
|
int nvo_applies ( struct settings *settings __unused,
|
||||||
struct setting *setting ) {
|
struct setting *setting ) {
|
||||||
|
|
||||||
return dhcpopt_applies ( setting->tag );
|
return dhcpopt_applies ( setting->tag );
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,7 @@ struct nvo_block {
|
||||||
/** Name of non-volatile options settings block */
|
/** Name of non-volatile options settings block */
|
||||||
#define NVO_SETTINGS_NAME "nvo"
|
#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,
|
extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
|
||||||
size_t address, size_t len,
|
size_t address, size_t len,
|
||||||
int ( * resize ) ( struct nvo_block *nvo, size_t len ),
|
int ( * resize ) ( struct nvo_block *nvo, size_t len ),
|
||||||
|
|
Loading…
Reference in New Issue