/[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.24 by sysadm, Fri May 30 02:57:09 2025 UTC Revision 1.27 by sysadm, Tue Jun 24 10:01:24 2025 UTC
# Line 17  Line 17 
17  #ifndef _MENU_H_  #ifndef _MENU_H_
18  #define _MENU_H_  #define _MENU_H_
19    
20    #include "bbs_cmd.h"
21  #include "common.h"  #include "common.h"
22  #include "trie_dict.h"  #include "trie_dict.h"
 #include "bbs_cmd.h"  
23  #include <stdint.h>  #include <stdint.h>
 #include <sys/shm.h>  
24    
25  #define MAX_MENU_NAME_LENGTH 30  #define MAX_MENU_NAME_LENGTH 30
26  #define MAX_ITEMS_PER_MENU 256  #define MAX_ITEMS_PER_MENU 256
# Line 106  struct menu_set_t Line 105  struct menu_set_t
105          int16_t menu_item_r_row[MAX_ITEMS_PER_MENU];          int16_t menu_item_r_row[MAX_ITEMS_PER_MENU];
106          int16_t menu_item_r_col[MAX_ITEMS_PER_MENU];          int16_t menu_item_r_col[MAX_ITEMS_PER_MENU];
107          int16_t menu_item_page_id[MAX_ITEMS_PER_MENU];          int16_t menu_item_page_id[MAX_ITEMS_PER_MENU];
108            int8_t allow_exit;
109  };  };
110  typedef struct menu_set_t MENU_SET;  typedef struct menu_set_t MENU_SET;
111    
# Line 114  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 get_menu_shm_readonly(MENU_SET *p_menu_set);
118  extern int set_menu_shm_readonly(MENU_SET *p_menu_set);  extern int set_menu_shm_readonly(MENU_SET *p_menu_set);
119  extern int detach_menu_shm(MENU_SET *p_menu_set);  extern int detach_menu_shm(MENU_SET *p_menu_set);
120    


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

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