NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
dispatcher.h
Go to the documentation of this file.
1
23#ifndef MUTT_CORE_DISPATCHER_H
24#define MUTT_CORE_DISPATCHER_H
25
26struct MuttWindow;
27
32{
35 FR_DONE = -5,
38 FR_ERROR = -2,
40};
41
52typedef int (*function_dispatcher_t)(struct MuttWindow *win, int op);
53
54const char *dispatcher_get_retval_name(int rv);
55
56#endif /* MUTT_CORE_DISPATCHER_H */
int(* function_dispatcher_t)(struct MuttWindow *win, int op)
Definition: dispatcher.h:52
FunctionRetval
Possible return values for NeoMutt functions.
Definition: dispatcher.h:32
@ FR_SUCCESS
Valid function - successfully performed.
Definition: dispatcher.h:39
@ FR_DONE
Exit the Dialog.
Definition: dispatcher.h:35
@ FR_UNKNOWN
Unknown function.
Definition: dispatcher.h:33
@ FR_ERROR
Valid function - error occurred.
Definition: dispatcher.h:38
@ FR_NOT_IMPL
Invalid function - feature not enabled.
Definition: dispatcher.h:36
@ FR_CONTINUE
Remain in the Dialog.
Definition: dispatcher.h:34
@ FR_NO_ACTION
Valid function - no action performed.
Definition: dispatcher.h:37
const char * dispatcher_get_retval_name(int rv)
Get the name of a return value.
Definition: dispatcher.c:54