| 110 |
typedef struct menu_set_t MENU_SET; |
typedef struct menu_set_t MENU_SET; |
| 111 |
|
|
| 112 |
extern MENU_SET bbs_menu; |
extern MENU_SET bbs_menu; |
| 113 |
|
extern MENU_SET top10_menu; |
| 114 |
|
|
| 115 |
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); |
| 116 |
extern int unload_menu(MENU_SET *p_menu_set); |
extern int unload_menu(MENU_SET *p_menu_set); |
| 139 |
return NULL; |
return NULL; |
| 140 |
} |
} |
| 141 |
|
|
| 142 |
return (p_menu_set->p_menu_pool + sizeof(MENU) * menu_id); |
return (MENU *)((char *)(p_menu_set->p_menu_pool) + sizeof(MENU) * menu_id); |
| 143 |
} |
} |
| 144 |
|
|
| 145 |
inline MENU_ITEM *get_menu_item_by_id(MENU_SET *p_menu_set, MENU_ITEM_ID menu_item_id) |
inline MENU_ITEM *get_menu_item_by_id(MENU_SET *p_menu_set, MENU_ITEM_ID menu_item_id) |
| 149 |
return NULL; |
return NULL; |
| 150 |
} |
} |
| 151 |
|
|
| 152 |
return (p_menu_set->p_menu_item_pool + sizeof(MENU_ITEM) * menu_item_id); |
return (MENU_ITEM *)((char *)(p_menu_set->p_menu_item_pool) + sizeof(MENU_ITEM) * menu_item_id); |
| 153 |
} |
} |
| 154 |
|
|
| 155 |
inline MENU_SCREEN *get_menu_screen_by_id(MENU_SET *p_menu_set, MENU_SCREEN_ID menu_screen_id) |
inline MENU_SCREEN *get_menu_screen_by_id(MENU_SET *p_menu_set, MENU_SCREEN_ID menu_screen_id) |
| 159 |
return NULL; |
return NULL; |
| 160 |
} |
} |
| 161 |
|
|
| 162 |
return (p_menu_set->p_menu_screen_pool + sizeof(MENU_ITEM) * menu_screen_id); |
return (MENU_SCREEN *)((char *)(p_menu_set->p_menu_screen_pool) + sizeof(MENU_ITEM) * menu_screen_id); |
| 163 |
} |
} |
| 164 |
|
|
| 165 |
#endif //_MENU_H_ |
#endif //_MENU_H_ |