#define M_MODEFMT "-- Madmutt: %s"
typedef struct menu_t {
- char *title; /* the title of this menu */
- char *help; /* quickref for the current menu */
+ const char *title; /* the title of this menu */
+ const char *help; /* quickref for the current menu */
void *data; /* extra data for the current menu */
int current; /* current entry */
int max; /* the number of entries in the menu */
* prompt keys override movement keys.
*/
char **dialog; /* dialog lines themselves */
- char *prompt; /* prompt for user, similar to mutt_multi_choice */
- char *keys; /* keys used in the prompt */
+ const char *prompt; /* prompt for user, similar to mutt_multi_choice */
+ const char *keys; /* keys used in the prompt */
/* callback to generate an index line for the requested element */
void (*make_entry) (char *, ssize_t, struct menu_t *, int);