NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
dispatcher.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_CORE_DISPATCHER_H
24
#define MUTT_CORE_DISPATCHER_H
25
26
struct
KeyEvent
;
27
struct
MuttWindow
;
28
32
enum
FunctionRetval
33
{
34
FR_UNKNOWN
= -7,
35
FR_CONTINUE
= -6,
36
FR_DONE
= -5,
37
FR_NOT_IMPL
= -4,
38
FR_NO_ACTION
= -3,
39
FR_ERROR
= -2,
40
FR_SUCCESS
= -1,
41
};
42
53
typedef
int (*
function_dispatcher_t
)(
struct
MuttWindow
*win,
const
struct
KeyEvent
*event);
54
55
const
char
*
dispatcher_get_retval_name
(
int
rv);
56
void
dispatcher_flush_on_error
(
int
rv);
57
58
#endif
/* MUTT_CORE_DISPATCHER_H */
FunctionRetval
FunctionRetval
Possible return values for NeoMutt functions.
Definition
dispatcher.h:33
FR_SUCCESS
@ FR_SUCCESS
Valid function - successfully performed.
Definition
dispatcher.h:40
FR_DONE
@ FR_DONE
Exit the Dialog.
Definition
dispatcher.h:36
FR_UNKNOWN
@ FR_UNKNOWN
Unknown function.
Definition
dispatcher.h:34
FR_ERROR
@ FR_ERROR
Valid function - error occurred.
Definition
dispatcher.h:39
FR_NOT_IMPL
@ FR_NOT_IMPL
Invalid function - feature not enabled.
Definition
dispatcher.h:37
FR_CONTINUE
@ FR_CONTINUE
Remain in the Dialog.
Definition
dispatcher.h:35
FR_NO_ACTION
@ FR_NO_ACTION
Valid function - no action performed.
Definition
dispatcher.h:38
dispatcher_get_retval_name
const char * dispatcher_get_retval_name(int rv)
Get the name of a return value.
Definition
dispatcher.c:55
dispatcher_flush_on_error
void dispatcher_flush_on_error(int rv)
Flush pending keys after a dispatch error.
Definition
dispatcher.c:65
function_dispatcher_t
int(* function_dispatcher_t)(struct MuttWindow *win, const struct KeyEvent *event)
Definition
dispatcher.h:53
KeyEvent
An event such as a keypress.
Definition
get.h:75
MuttWindow
Definition
mutt_window.h:129