/[LeafOK_CVS]/lbbs/include/menu.h
ViewVC logotype

Diff of /lbbs/include/menu.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 by sysadm, Mon Mar 21 05:43:43 2005 UTC Revision 1.8 by sysadm, Sat May 7 09:28:12 2005 UTC
# Line 15  Line 15 
15   *                                                                         *   *                                                                         *
16   ***************************************************************************/   ***************************************************************************/
17    
18  #define MAX_MENUITEM_LENGTH             50  #ifndef _MENU_H_
19  #define MAX_MENUITEMS                   30  #define _MENU_H_
20  #define MAX_MENUNAME_LENGTH             20  
21    #define MAX_MENUITEM_LENGTH             50
22    #define MAX_MENUITEMS                   30
23    #define MAX_MENUNAME_LENGTH             256
24  #define MAX_MENUACTION_LENGTH           20  #define MAX_MENUACTION_LENGTH           20
25  #define MAX_MENUTITLE_LENGTH            50  #define MAX_MENUTITLE_LENGTH            50
26  #define MAX_MENUS                       256  #define MAX_MENUS                       256
# Line 36  typedef struct _menu_item MENU_ITEM; Line 39  typedef struct _menu_item MENU_ITEM;
39    
40  struct _menu_title  struct _menu_title
41  {  {
42    int row, col;    int row, col, show;
43    char text[MAX_MENUTITLE_LENGTH];    char text[MAX_MENUTITLE_LENGTH];
44  };  };
45  typedef struct _menu_title MENU_TITLE;  typedef struct _menu_title MENU_TITLE;
46    
47  struct _menu_screen  struct _menu_screen
48  {  {
49    int row, col;    int row, col, show;
50    char filename[256];    char filename[256];
51  };  };
52  typedef struct _menu_screen MENU_SCREEN;  typedef struct _menu_screen MENU_SCREEN;
# Line 60  typedef struct _menu MENU; Line 63  typedef struct _menu MENU;
63    
64  struct _menu_set  struct _menu_set
65  {  {
66      char conf_file[256];
67    MENU *p_menu[MAX_MENUS];    MENU *p_menu[MAX_MENUS];
68    MENU *p_menu_select[MAX_MENU_DEPTH];    MENU *p_menu_select[MAX_MENU_DEPTH];
69    int menu_count;    int menu_count;
# Line 69  typedef struct _menu_set MENU_SET; Line 73  typedef struct _menu_set MENU_SET;
73    
74  extern MENU_SET bbs_menu;  extern MENU_SET bbs_menu;
75    
76  const char *menu_control (MENU_SET * p_menu_set, int key);  extern int load_menu (MENU_SET * p_menu_set, const char *conf_file);
77    extern void unload_menu (MENU_SET * p_menu_set);
78  int display_menu (MENU * p_menu);  extern int reload_menu (MENU_SET * p_menu_set);
79    extern int menu_control (MENU_SET * p_menu_set, int key);
80    extern int display_menu (MENU * p_menu);
81    extern MENU *get_menu (MENU_SET * p_menu_set, const char *menu_name);
82    
83  MENU *get_menu (MENU_SET * p_menu_set, const char *menu_name);  #endif //_MENU_H_


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1