* coding style harmonization in servers/
- explicitely declare void arguments - make a few string args const * better support for shorter displays in server screen * make target to create top level tag file
This commit is contained in:
+12
-12
@@ -20,42 +20,42 @@
|
||||
#include "menuitem.h"
|
||||
#include "screen.h"
|
||||
|
||||
extern Screen * menuscreen;
|
||||
extern Menu * main_menu;
|
||||
extern Screen *menuscreen;
|
||||
extern Menu *main_menu;
|
||||
|
||||
int menuscreens_init();
|
||||
int menuscreens_init(void);
|
||||
|
||||
int menuscreens_shutdown();
|
||||
int menuscreens_shutdown(void);
|
||||
|
||||
/** This function indicates to the input part whether this key was the
|
||||
* reserved menu key.
|
||||
*/
|
||||
bool is_menu_key (const char * key);
|
||||
bool is_menu_key(const char *key);
|
||||
|
||||
/** Meant for other parts of the program to inform the menuscreen that the
|
||||
* item is about to be removed.
|
||||
*/
|
||||
void menuscreen_inform_item_destruction (MenuItem * item);
|
||||
void menuscreen_inform_item_destruction(MenuItem *item);
|
||||
|
||||
/** Meant for other parts of the program to inform the menuscreen that some
|
||||
* properties of the item have been modified.
|
||||
*/
|
||||
void menuscreen_inform_item_modified (MenuItem * item);
|
||||
void menuscreen_inform_item_modified(MenuItem *item);
|
||||
|
||||
/** This handler handles the keypresses for the menu.
|
||||
*/
|
||||
void menuscreen_key_handler (const char *key);
|
||||
void menuscreen_key_handler(const char *key);
|
||||
|
||||
/** Adds a menu for the given screen */
|
||||
void menuscreen_add_screen (Screen * s);
|
||||
void menuscreen_add_screen(Screen *s);
|
||||
|
||||
/** Removes the menu of the given screen */
|
||||
void menuscreen_remove_screen (Screen * s);
|
||||
void menuscreen_remove_screen(Screen *s);
|
||||
|
||||
/** switches to menu. */
|
||||
int menuscreen_goto (Menu * menu);
|
||||
int menuscreen_goto(Menu *menu);
|
||||
|
||||
/** sets custom_main_menu. */
|
||||
int menuscreen_set_main (Menu * menu);
|
||||
int menuscreen_set_main(Menu *menu);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user