mirror of
https://github.com/ipxe/ipxe
synced 2025-12-10 13:32:20 +03:00
[Settings] Introduce settings applicators.
Convert DHCP option applicators in dns.c and iscsi.c to settings applicators. Kill off DHCP option applicators.
This commit is contained in:
@@ -489,23 +489,6 @@ struct dhcp_packet {
|
||||
struct dhcp_option_block options;
|
||||
};
|
||||
|
||||
/** A DHCP option applicator */
|
||||
struct dhcp_option_applicator {
|
||||
/** DHCP option tag */
|
||||
unsigned int tag;
|
||||
/** Applicator
|
||||
*
|
||||
* @v tag DHCP option tag
|
||||
* @v option DHCP option
|
||||
* @ret rc Return status code
|
||||
*/
|
||||
int ( * apply ) ( unsigned int tag, struct dhcp_option *option );
|
||||
};
|
||||
|
||||
/** Declare a DHCP option applicator */
|
||||
#define __dhcp_applicator \
|
||||
__table ( struct dhcp_option_applicator, dhcp_applicators, 01 )
|
||||
|
||||
/**
|
||||
* Get reference to DHCP options block
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user