summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/settings.h
diff options
context:
space:
mode:
authorMichael Brown2011-03-22 20:12:10 +0100
committerMichael Brown2011-03-22 21:13:50 +0100
commit5fbd0207b269ca555dd904e297128ae3e9c0e984 (patch)
tree5920f64050f37f3d7be226c279fbe02200779541 /src/include/ipxe/settings.h
parent[settings] Provide fetch_setting_origin() (diff)
downloadipxe-5fbd0207b269ca555dd904e297128ae3e9c0e984.tar.gz
ipxe-5fbd0207b269ca555dd904e297128ae3e9c0e984.tar.xz
ipxe-5fbd0207b269ca555dd904e297128ae3e9c0e984.zip
[settings] Display canonical setting name in output of "show" command
Enable the "show" command to display the full, canonicalised name of the fetched setting. For example: iPXE> show mac net0/mac:hex = 52:54:00:12:34:56 iPXE> dhcp && show ip DHCP (net0 52:54:00:12:34:56)... ok net0.dhcp/ip:ipv4 = 10.0.0.168 iPXE> show net0/6 net0.dhcp/dns:ipv4 = 10.0.0.6 Inspired-by: Glenn Brown <glenn@myri.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/settings.h')
-rw-r--r--src/include/ipxe/settings.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/ipxe/settings.h b/src/include/ipxe/settings.h
index e132333a..d251b46e 100644
--- a/src/include/ipxe/settings.h
+++ b/src/include/ipxe/settings.h
@@ -255,7 +255,9 @@ extern int storef_setting ( struct settings *settings,
struct setting *setting,
const char *value );
extern int storef_named_setting ( const char *name, const char *value );
-extern int fetchf_named_setting ( const char *name, char *buf, size_t len );
+extern int fetchf_named_setting ( const char *name, char *name_buf,
+ size_t name_len, char *value_buf,
+ size_t value_len );
extern char * expand_settings ( const char *string );
extern struct setting_type setting_type_string __setting_type;