--- lbbs/include/menu.h 2025/05/19 06:26:07 1.21 +++ lbbs/include/menu.h 2025/06/20 11:27:47 1.25 @@ -21,7 +21,6 @@ #include "trie_dict.h" #include "bbs_cmd.h" #include -#include #define MAX_MENU_NAME_LENGTH 30 #define MAX_ITEMS_PER_MENU 256 @@ -80,6 +79,8 @@ struct menu_t int16_t item_count; int16_t page_row, page_col; int16_t page_item_limit; + int8_t use_filter; + bbs_cmd_handler filter_handler; }; typedef struct menu_t MENU; @@ -112,9 +113,10 @@ extern MENU_SET *p_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 load_menu_shm(MENU_SET *p_menu_set); -extern int unload_menu_shm(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); +extern int display_menu_cursor(MENU_SET *p_menu_set, int show); extern int menu_control(MENU_SET *p_menu_set, int key); extern int display_menu(MENU_SET *p_menu_set);