Browse Source

__nonnull changes

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
3559beeb0f
1 changed files with 18 additions and 1 deletions
  1. 18
    1
      src/hci/tui/settings_ui.c

+ 18
- 1
src/hci/tui/settings_ui.c View File

36
 #include <gpxe/nvo.h>
36
 #include <gpxe/nvo.h>
37
 extern struct nvo_block *ugly_nvo_hack;
37
 extern struct nvo_block *ugly_nvo_hack;
38
 
38
 
39
-
40
 /* Colour pairs */
39
 /* Colour pairs */
41
 #define CPAIR_NORMAL	1
40
 #define CPAIR_NORMAL	1
42
 #define CPAIR_SELECT	2
41
 #define CPAIR_SELECT	2
88
 	__table_end ( struct config_setting, config_settings );
87
 	__table_end ( struct config_setting, config_settings );
89
 #define NUM_SETTINGS ( ( unsigned ) ( config_settings_end - config_settings ) )
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
  * Load setting widget value from configuration context
109
  * Load setting widget value from configuration context
93
  *
110
  *

Loading…
Cancel
Save