summaryrefslogtreecommitdiffstats
path: root/src/hci/tui
diff options
context:
space:
mode:
authorMichael Brown2008-03-20 22:01:32 +0100
committerMichael Brown2008-03-20 22:01:32 +0100
commit260b93bb72ab31881669cb3e393816a6156c92b7 (patch)
tree04ba222fa088af8035eaa82423caebf9cb5b07b1 /src/hci/tui
parent[Settings] Start revamping the configuration settings API. (diff)
downloadipxe-260b93bb72ab31881669cb3e393816a6156c92b7.tar.gz
ipxe-260b93bb72ab31881669cb3e393816a6156c92b7.tar.xz
ipxe-260b93bb72ab31881669cb3e393816a6156c92b7.zip
[Settings] Add settings hierarchy
Add the notion of the settings hierarchy, complete with register/unregister routines. Rename set->store and get->fetch to avoid naming conflicts with get/put as used in reference counting.
Diffstat (limited to 'src/hci/tui')
-rw-r--r--src/hci/tui/settings_ui.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/hci/tui/settings_ui.c b/src/hci/tui/settings_ui.c
index a20dd44d..83146b58 100644
--- a/src/hci/tui/settings_ui.c
+++ b/src/hci/tui/settings_ui.c
@@ -114,9 +114,9 @@ static void load_setting ( struct setting_widget *widget ) {
widget->editing = 0;
/* Read current setting value */
- if ( get_typed_setting ( widget->settings, widget->setting->tag,
- widget->setting->type, widget->value,
- sizeof ( widget->value ) ) < 0 ) {
+ if ( fetch_typed_setting ( widget->settings, widget->setting->tag,
+ widget->setting->type, widget->value,
+ sizeof ( widget->value ) ) < 0 ) {
widget->value[0] = '\0';
}
@@ -133,8 +133,8 @@ static void load_setting ( struct setting_widget *widget ) {
* @v widget Setting widget
*/
static int save_setting ( struct setting_widget *widget ) {
- return set_typed_setting ( widget->settings, widget->setting->tag,
- widget->setting->type, widget->value );
+ return store_typed_setting ( widget->settings, widget->setting->tag,
+ widget->setting->type, widget->value );
}
/**