From ec24672db720a97305823012033c65f685b41368 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 6 Mar 2009 14:40:44 +0000 Subject: [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.) --- src/include/gpxe/settings.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/include') 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, -- cgit v1.2.3-55-g7522