NeoMutt  2022-04-29-215-gc12b98
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#include <stdbool.h>
27
28struct IndexPrivateData;
29struct IndexSharedData;
30struct MuttWindow;
31
43typedef int (*index_function_t)(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op);
44
49{
50 int op;
52 int flags;
53};
54
55int index_function_dispatcher(struct MuttWindow *win, int op);
56bool index_next_undeleted(struct MuttWindow *win_index);
57
58extern struct IndexFunction IndexFunctions[];
59
60#endif /* MUTT_INDEX_FUNCTIONS_H */
int index_function_dispatcher(struct MuttWindow *win, int op)
Perform an Index function - Implements function_dispatcher_t -.
Definition: functions.c:2831
int(* index_function_t)(struct IndexSharedData *shared, struct IndexPrivateData *priv, int op)
Definition: functions.h:43
bool index_next_undeleted(struct MuttWindow *win_index)
Select the next undeleted Email (if possible)
Definition: functions.c:157
struct IndexFunction IndexFunctions[]
All the NeoMutt functions that the Index supports.
Definition: functions.c:2877
A NeoMutt function.
Definition: functions.h:49
int op
Op code, e.g. OP_MAIN_LIMIT.
Definition: functions.h:50
index_function_t function
Function to call.
Definition: functions.h:51
int flags
Prerequisites for the function, e.g. CHECK_IN_MAILBOX.
Definition: functions.h:52
Private state data for the Index.
Definition: private_data.h:35
Data shared between Index, Pager and Sidebar.
Definition: shared_data.h:37