/[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.33 by sysadm, Tue Nov 4 14:58:55 2025 UTC Revision 1.37 by sysadm, Sat Jan 3 10:27:14 2026 UTC
# Line 3  Line 3 
3   * menu   * menu
4   *   - configurable user interactive menu feature   *   - configurable user interactive menu feature
5   *   *
6   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2026  Leaflet <leaflet@leafok.com>
7   */   */
8    
9  #ifndef _MENU_H_  #ifndef _MENU_H_
# Line 14  Line 14 
14  #include "trie_dict.h"  #include "trie_dict.h"
15  #include <stdint.h>  #include <stdint.h>
16    
17  #define MAX_MENU_NAME_LENGTH 30  enum menu_constant_t
18  #define MAX_ITEMS_PER_MENU 256  {
19  #define MAX_MENUITEM_NAME_LENGTH 256          MAX_MENU_NAME_LENGTH = 30,
20  #define MAX_MENUITEM_TEXT_LENGTH 200          MAX_ITEMS_PER_MENU = 256,
21  #define MAX_MENUITEM_ACTION_LENGTH 30          MAX_MENUITEM_NAME_LENGTH = 256,
22  #define MAX_MENUTITLE_TEXT_LENGTH 100          MAX_MENUITEM_TEXT_LENGTH = 200,
23  #define MAX_MENU_SCR_NAME_LENGTH 20          MAX_MENUITEM_ACTION_LENGTH = 30,
24  #define MAX_MENU_SCR_BUF_LENGTH 2000          MAX_MENUTITLE_TEXT_LENGTH = 100,
25  #define MAX_MENUS 256          MAX_MENU_SCR_NAME_LENGTH = 20,
26  #define MAX_MENUITEMS 5120          MAX_MENU_SCR_BUF_LENGTH = 2000,
27  #define MAX_MENU_DEPTH 50          MAX_MENUS = 256,
28            MAX_MENUITEMS = 5120,
29            MAX_MENU_DEPTH = 50,
30    };
31    
32  typedef uint64_t MENU_ID;  typedef uint64_t MENU_ID;
33  typedef uint64_t MENU_ITEM_ID;  typedef uint64_t MENU_ITEM_ID;
# Line 78  typedef struct menu_t MENU; Line 81  typedef struct menu_t MENU;
81    
82  struct menu_set_t  struct menu_set_t
83  {  {
84          int shmid;          char shm_name[FILE_NAME_LEN];
85            size_t shm_size;
86          void *p_reserved;          void *p_reserved;
87          void *p_menu_pool;          void *p_menu_pool;
88          void *p_menu_item_pool;          void *p_menu_item_pool;


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

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