--- lbbs/include/menu.h 2025/06/20 11:27:47 1.25 +++ lbbs/include/menu.h 2025/06/25 01:50:14 1.28 @@ -17,9 +17,9 @@ #ifndef _MENU_H_ #define _MENU_H_ +#include "bbs_cmd.h" #include "common.h" #include "trie_dict.h" -#include "bbs_cmd.h" #include #define MAX_MENU_NAME_LENGTH 30 @@ -105,14 +105,16 @@ struct menu_set_t int16_t menu_item_r_row[MAX_ITEMS_PER_MENU]; int16_t menu_item_r_col[MAX_ITEMS_PER_MENU]; int16_t menu_item_page_id[MAX_ITEMS_PER_MENU]; + int8_t allow_exit; }; typedef struct menu_set_t MENU_SET; -extern MENU_SET *p_bbs_menu; +extern MENU_SET bbs_menu; extern int load_menu(MENU_SET *p_menu_set, const char *conf_file); extern int unload_menu(MENU_SET *p_menu_set); +extern int get_menu_shm_readonly(MENU_SET *p_menu_set); extern int set_menu_shm_readonly(MENU_SET *p_menu_set); extern int detach_menu_shm(MENU_SET *p_menu_set);