Holger Lubitz 17 лет назад
Родитель
Сommit
3559beeb0f
1 измененных файлов: 18 добавлений и 1 удалений
  1. 18
    1
      src/hci/tui/settings_ui.c

+ 18
- 1
src/hci/tui/settings_ui.c Просмотреть файл

@@ -36,7 +36,6 @@
36 36
 #include <gpxe/nvo.h>
37 37
 extern struct nvo_block *ugly_nvo_hack;
38 38
 
39
-
40 39
 /* Colour pairs */
41 40
 #define CPAIR_NORMAL	1
42 41
 #define CPAIR_SELECT	2
@@ -88,6 +87,24 @@ static struct config_setting config_settings_end[0]
88 87
 	__table_end ( struct config_setting, config_settings );
89 88
 #define NUM_SETTINGS ( ( unsigned ) ( config_settings_end - config_settings ) )
90 89
 
90
+static void load_setting ( struct setting_widget *widget ) __nonnull;
91
+static int save_setting ( struct setting_widget *widget ) __nonnull;
92
+static void init_setting ( struct setting_widget *widget,
93
+                           struct config_context *context,
94
+                           struct config_setting *setting,
95
+                           unsigned int row, unsigned int col ) __nonnull;
96
+static void draw_setting ( struct setting_widget *widget ) __nonnull;
97
+static int edit_setting ( struct setting_widget *widget, int key ) __nonnull;
98
+static void init_setting_index ( struct setting_widget *widget,
99
+                                 struct config_context *context,
100
+                                 unsigned int index ) __nonnull;
101
+static void vmsg ( unsigned int row, const char *fmt, va_list args ) __nonnull;
102
+static void msg ( unsigned int row, const char *fmt, ... ) __nonnull;
103
+static void valert ( const char *fmt, va_list args ) __nonnull;
104
+static void alert ( const char *fmt, ... ) __nonnull;
105
+static void draw_info_row ( struct config_setting *setting ) __nonnull;
106
+static int main_loop ( struct config_context *context ) __nonnull;
107
+
91 108
 /**
92 109
  * Load setting widget value from configuration context
93 110
  *

Загрузка…
Отмена
Сохранить