diff options
| author | Michael Brown | 2009-03-06 15:40:44 +0100 |
|---|---|---|
| committer | Michael Brown | 2009-03-06 15:40:44 +0100 |
| commit | ec24672db720a97305823012033c65f685b41368 (patch) | |
| tree | b6ca3a8b2a5e4668ef49db1ad0484fbbe9addada /src/include | |
| parent | [release] Update version to 0.9.7+ post release (diff) | |
| download | ipxe-ec24672db720a97305823012033c65f685b41368.tar.gz ipxe-ec24672db720a97305823012033c65f685b41368.tar.xz ipxe-ec24672db720a97305823012033c65f685b41368.zip | |
[settings] Allow for autovivification of settings blocks
Allow for settings blocks to be created on demand. This allows for
constructions such as
set defaults/filename http://bootserver/bootfile
set defaults/priority 0xff
dhcp net0
chain ${filename}
which will boot from the DHCP-provided filename, or from
"http://bootserver/bootfile" if the DHCP server does not provide a
filename.
(Note that "priority" gets interpreted as a signed integer, so setting
"defaults/priority" to 0xff will cause the "defaults" settings block
to have an effective priority of -1.)
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/settings.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/include/gpxe/settings.h b/src/include/gpxe/settings.h index 9e62cdeab..fe9c8082c 100644 --- a/src/include/gpxe/settings.h +++ b/src/include/gpxe/settings.h @@ -193,8 +193,6 @@ extern int fetch_uuid_setting ( struct settings *settings, struct setting *setting, union uuid *uuid ); extern int setting_cmp ( struct setting *a, struct setting *b ); -extern struct settings * find_child_settings ( struct settings *parent, - const char *name ); extern struct settings * find_settings ( const char *name ); extern int storef_setting ( struct settings *settings, |
