--- lbbs/include/menu.h 2005/03/21 17:08:21 1.6 +++ lbbs/include/menu.h 2005/05/06 15:48:44 1.7 @@ -15,9 +15,12 @@ * * ***************************************************************************/ +#ifndef _MENU_H_ +#define _MENU_H_ + #define MAX_MENUITEM_LENGTH 50 #define MAX_MENUITEMS 30 -#define MAX_MENUNAME_LENGTH 20 +#define MAX_MENUNAME_LENGTH 256 #define MAX_MENUACTION_LENGTH 20 #define MAX_MENUTITLE_LENGTH 50 #define MAX_MENUS 256 @@ -69,8 +72,10 @@ typedef struct _menu_set MENU_SET; extern MENU_SET bbs_menu; -const char *menu_control (MENU_SET * p_menu_set, int key); +extern int menu_control (MENU_SET * p_menu_set, int key); + +extern int display_menu (MENU * p_menu); -int display_menu (MENU * p_menu); +extern MENU *get_menu (MENU_SET * p_menu_set, const char *menu_name); -MENU *get_menu (MENU_SET * p_menu_set, const char *menu_name); +#endif //_MENU_H_