/[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.20 by sysadm, Mon May 19 01:44:49 2025 UTC Revision 1.24 by sysadm, Fri May 30 02:57:09 2025 UTC
# Line 24  Line 24 
24  #include <sys/shm.h>  #include <sys/shm.h>
25    
26  #define MAX_MENU_NAME_LENGTH 30  #define MAX_MENU_NAME_LENGTH 30
27  #define MAX_ITEMS_PER_MENU 30  #define MAX_ITEMS_PER_MENU 256
28  #define MAX_MENUITEM_NAME_LENGTH 256  #define MAX_MENUITEM_NAME_LENGTH 256
29  #define MAX_MENUITEM_TEXT_LENGTH 100  #define MAX_MENUITEM_TEXT_LENGTH 100
30  #define MAX_MENUITEM_ACTION_LENGTH 30  #define MAX_MENUITEM_ACTION_LENGTH 30
# Line 78  struct menu_t Line 78  struct menu_t
78          int16_t screen_row, screen_col;          int16_t screen_row, screen_col;
79          MENU_ITEM_ID items[MAX_ITEMS_PER_MENU];          MENU_ITEM_ID items[MAX_ITEMS_PER_MENU];
80          int16_t item_count;          int16_t item_count;
81            int16_t page_row, page_col;
82            int16_t page_item_limit;
83            int8_t use_filter;
84            bbs_cmd_handler filter_handler;
85  };  };
86  typedef struct menu_t MENU;  typedef struct menu_t MENU;
87    
# Line 101  struct menu_set_t Line 105  struct menu_set_t
105          int8_t menu_item_display[MAX_ITEMS_PER_MENU];          int8_t menu_item_display[MAX_ITEMS_PER_MENU];
106          int16_t menu_item_r_row[MAX_ITEMS_PER_MENU];          int16_t menu_item_r_row[MAX_ITEMS_PER_MENU];
107          int16_t menu_item_r_col[MAX_ITEMS_PER_MENU];          int16_t menu_item_r_col[MAX_ITEMS_PER_MENU];
108            int16_t menu_item_page_id[MAX_ITEMS_PER_MENU];
109  };  };
110  typedef struct menu_set_t MENU_SET;  typedef struct menu_set_t MENU_SET;
111    
# Line 109  extern MENU_SET *p_bbs_menu; Line 114  extern MENU_SET *p_bbs_menu;
114  extern int load_menu(MENU_SET *p_menu_set, const char *conf_file);  extern int load_menu(MENU_SET *p_menu_set, const char *conf_file);
115  extern int unload_menu(MENU_SET *p_menu_set);  extern int unload_menu(MENU_SET *p_menu_set);
116    
117  extern int load_menu_shm(MENU_SET *p_menu_set);  extern int set_menu_shm_readonly(MENU_SET *p_menu_set);
118  extern int unload_menu_shm(MENU_SET *p_menu_set);  extern int detach_menu_shm(MENU_SET *p_menu_set);
119    
120    extern int display_menu_cursor(MENU_SET *p_menu_set, int show);
121  extern int menu_control(MENU_SET *p_menu_set, int key);  extern int menu_control(MENU_SET *p_menu_set, int key);
122  extern int display_menu(MENU_SET *p_menu_set);  extern int display_menu(MENU_SET *p_menu_set);
123    


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

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