| 3 |
* menu |
* menu |
| 4 |
* - configurable user interactive menu feature |
* - configurable user interactive menu feature |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
|
#ifdef HAVE_CONFIG_H |
| 10 |
|
#include "config.h" |
| 11 |
|
#endif |
| 12 |
|
|
| 13 |
#include "bbs.h" |
#include "bbs.h" |
| 14 |
#include "bbs_cmd.h" |
#include "bbs_cmd.h" |
| 15 |
#include "bbs_cmd.h" |
#include "bbs_cmd.h" |
| 28 |
#include <sys/ipc.h> |
#include <sys/ipc.h> |
| 29 |
#include <sys/shm.h> |
#include <sys/shm.h> |
| 30 |
|
|
| 31 |
#define MENU_SCREEN_PATH_PREFIX "var/MENU_SCR_" |
enum _menu_constant_t |
| 32 |
#define MENU_CONF_DELIM_WITH_SPACE " ,\t\r\n" |
{ |
| 33 |
#define MENU_CONF_DELIM_WITHOUT_SPACE "\r\n" |
MENU_SET_RESERVED_LENGTH = sizeof(int16_t) * 4, |
| 34 |
|
MENU_SHMGET_RETRY_LIMIT = 10, |
| 35 |
#define MENU_SET_RESERVED_LENGTH (sizeof(int16_t) * 4) |
}; |
| 36 |
|
|
| 37 |
#define MENU_SHMGET_RETRY_LIMIT 10 |
static const char MENU_CONF_DELIM_WITH_SPACE[] = " ,\t\r\n"; |
| 38 |
|
static const char MENU_CONF_DELIM_WITHOUT_SPACE[] = "\r\n"; |
| 39 |
|
|
| 40 |
MENU_SET bbs_menu; |
MENU_SET bbs_menu; |
| 41 |
MENU_SET top10_menu; |
MENU_SET top10_menu; |