[Settings] Start revamping the configuration settings API.

Add the concept of an abstract configuration setting, comprising a (DHCP)
tag value and an associated byte sequence.

Add the concept of a settings namespace.

Add functions for extracting string, IPv4 address, and signed and
unsigned integer values from configuration settings (analogous to
dhcp_snprintf(), dhcp_ipv4_option(), etc.).

Update functions for parsing and formatting named/typed options to work
with new settings API.

Update NVO commands and config UI to use new settings API.
This commit is contained in:
Michael Brown
2008-03-20 04:06:07 +00:00
parent 7067142fb4
commit a48b4d9948
6 changed files with 812 additions and 506 deletions

View File

@@ -7,8 +7,8 @@
*
*/
struct config_context;
struct settings;
extern int settings_ui ( struct config_context *context ) __nonnull;
extern int settings_ui ( struct settings *settings ) __nonnull;
#endif /* _GPXE_SETTINGS_UI_H */