NeoMutt  2025-12-11-177-g48e272
Teaching an old dog new tricks
DOXYGEN
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
26struct KeyEvent;
27struct MuttWindow;
28
42
53typedef int (*function_dispatcher_t)(struct MuttWindow *win, const struct KeyEvent *event);
54
55const char *dispatcher_get_retval_name(int rv);
56
57#endif /* MUTT_CORE_DISPATCHER_H */
FunctionRetval
Possible return values for NeoMutt functions.
Definition dispatcher.h:33
@ FR_SUCCESS
Valid function - successfully performed.
Definition dispatcher.h:40
@ FR_DONE
Exit the Dialog.
Definition dispatcher.h:36
@ FR_UNKNOWN
Unknown function.
Definition dispatcher.h:34
@ FR_ERROR
Valid function - error occurred.
Definition dispatcher.h:39
@ FR_NOT_IMPL
Invalid function - feature not enabled.
Definition dispatcher.h:37
@ FR_CONTINUE
Remain in the Dialog.
Definition dispatcher.h:35
@ FR_NO_ACTION
Valid function - no action performed.
Definition dispatcher.h:38
const char * dispatcher_get_retval_name(int rv)
Get the name of a return value.
Definition dispatcher.c:54
int(* function_dispatcher_t)(struct MuttWindow *win, const struct KeyEvent *event)
Definition dispatcher.h:53
An event such as a keypress.
Definition get.h:50