/[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.4 by sysadm, Sat Mar 19 14:44:21 2005 UTC Revision 1.6 by sysadm, Mon Mar 21 17:08:21 2005 UTC
# Line 23  Line 23 
23  #define MAX_MENUS                       256  #define MAX_MENUS                       256
24  #define MAX_MENU_DEPTH                  50  #define MAX_MENU_DEPTH                  50
25    
26  struct _menu_item {  struct _menu_item
27          int row, col, r_row, r_col;  {
28          char action[MAX_MENUACTION_LENGTH];    int row, col, r_row, r_col;
29          int submenu;    char action[MAX_MENUACTION_LENGTH];
30          int priv, display;    int submenu;
31          char name[MAX_MENUNAME_LENGTH];    int priv, level, display;
32          char text[MAX_MENUITEM_LENGTH];    char name[MAX_MENUNAME_LENGTH];
33      char text[MAX_MENUITEM_LENGTH];
34  };  };
35  typedef struct _menu_item MENU_ITEM;  typedef struct _menu_item MENU_ITEM;
36    
37  struct _menu_title {  struct _menu_title
38          int row, col;  {
39          char text[MAX_MENUTITLE_LENGTH];    int row, col, show;
40      char text[MAX_MENUTITLE_LENGTH];
41  };  };
42  typedef struct _menu_title MENU_TITLE;  typedef struct _menu_title MENU_TITLE;
43    
44  struct _menu_screen {  struct _menu_screen
45          int row, col;  {
46          char filename[256];    int row, col, show;
47      char filename[256];
48  };  };
49  typedef struct _menu_screen MENU_SCREEN;  typedef struct _menu_screen MENU_SCREEN;
50    
51  struct _menu {  struct _menu
52          char name[MAX_MENUNAME_LENGTH];  {
53          MENU_TITLE title;    char name[MAX_MENUNAME_LENGTH];
54          MENU_SCREEN screen;    MENU_TITLE title;
55          MENU_ITEM *items[MAX_MENUITEMS];    MENU_SCREEN screen;
56          int item_count, item_cur_pos;    MENU_ITEM *items[MAX_MENUITEMS];
57      int item_count, item_cur_pos;
58  };  };
59  typedef struct _menu MENU;  typedef struct _menu MENU;
60    
61  struct _menu_set {  struct _menu_set
62          MENU *p_menu[MAX_MENUS];  {
63          MENU *p_menu_select[MAX_MENU_DEPTH];    MENU *p_menu[MAX_MENUS];
64          int menu_count;    MENU *p_menu_select[MAX_MENU_DEPTH];
65          int menu_select_depth;    int menu_count;
66      int menu_select_depth;
67  };  };
68  typedef struct _menu_set MENU_SET;  typedef struct _menu_set MENU_SET;
           
 extern MENU_SET bbs_menu;  
69    
70  const char *  extern MENU_SET bbs_menu;
 menu_control (MENU_SET * p_menu_set, int key);  
71    
72  int  const char *menu_control (MENU_SET * p_menu_set, int key);
 display_menu (MENU * p_menu);  
73    
74  MENU *  int display_menu (MENU * p_menu);
 get_menu (MENU_SET * p_menu_set, const char * menu_name);  
75    
76    MENU *get_menu (MENU_SET * p_menu_set, const char *menu_name);


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

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