NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1
23#ifndef MUTT_HISTORY_FUNCTIONS_H
24#define MUTT_HISTORY_FUNCTIONS_H
25
26#include <stdbool.h>
27#include "mutt/lib.h"
28
29struct MuttWindow;
30
31ARRAY_HEAD(HistoryArray, const char *);
32
37{
38 bool done;
39 bool selection;
40 struct Buffer *buf;
41 struct Menu *menu;
42 struct HistoryArray *matches;
43};
44
55typedef int (*history_function_t)(struct HistoryData *pd, int op);
56
61{
62 int op;
64};
65
66int history_function_dispatcher(struct MuttWindow *win, int op);
67
68#endif /* MUTT_HISTORY_FUNCTIONS_H */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:47
int history_function_dispatcher(struct MuttWindow *win, int op)
Perform a History function - Implements function_dispatcher_t -.
Definition: functions.c:79
int(* history_function_t)(struct HistoryData *pd, int op)
Definition: functions.h:55
Convenience wrapper for the library headers.
String manipulation buffer.
Definition: buffer.h:36
Data to pass to the History Functions.
Definition: functions.h:37
struct Menu * menu
History Menu.
Definition: functions.h:41
struct Buffer * buf
Buffer for the results.
Definition: functions.h:40
struct HistoryArray * matches
History entries.
Definition: functions.h:42
bool done
Should we close the Dialog?
Definition: functions.h:38
bool selection
Was a selection made?
Definition: functions.h:39
A NeoMutt function.
Definition: functions.h:61
history_function_t function
Function to call.
Definition: functions.h:63
int op
Op code, e.g. OP_GENERIC_SELECT_ENTRY.
Definition: functions.h:62
Definition: lib.h:79