NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
functions.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_INDEX_FUNCTIONS_H
24 #define MUTT_INDEX_FUNCTIONS_H
25 
26 struct IndexPrivateData;
27 struct IndexSharedData;
28 struct MuttWindow;
29 
34 {
35  IR_UNKNOWN = -7,
36  IR_CONTINUE = -6,
37  IR_DONE = -5,
38  IR_NOT_IMPL = -4,
39  IR_NO_ACTION = -3,
40  IR_ERROR = -2,
41  IR_SUCCESS = -1,
42 };
43 
54 typedef int (*index_function_t)(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op);
55 
60 {
61  int op;
62  index_function_t function;
63  int flags;
64 };
65 
66 int index_function_dispatcher(struct MuttWindow *win_index, int op);
67 
68 extern struct IndexFunction IndexFunctions[];
69 
70 #endif /* MUTT_INDEX_FUNCTIONS_H */
Valid function - successfully performed.
Definition: functions.h:41
int index_function_dispatcher(struct MuttWindow *win_index, int op)
Perform an Index function.
Definition: functions.c:2964
Private state data for the Index.
Definition: private_data.h:34
Data shared between Index, Pager and Sidebar.
Definition: shared_data.h:36
struct IndexFunction IndexFunctions[]
All the NeoMutt functions that the Index supports.
Definition: functions.c:3004
Return to the Pager.
Definition: functions.h:36
int op
Op code, e.g. OP_MAIN_LIMIT.
Definition: functions.h:61
Exit the Index.
Definition: functions.h:37
A NeoMutt function.
Definition: functions.h:59
Unknown key.
Definition: functions.h:35
IndexRetval
Possible return values for Index functions.
Definition: functions.h:33
int(* index_function_t)(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Definition: functions.h:54
Invalid function - feature not enabled.
Definition: functions.h:38
Valid function - error occurred.
Definition: functions.h:40
Valid function - no action performed.
Definition: functions.h:39
int flags
Prerequisites for the function, e.g. CHECK_IN_MAILBOX.
Definition: functions.h:63