NeoMutt  2024-11-14-34-g5aaf0d
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 <stdio.h>
28#include "mutt/lib.h"
29
30struct MuttWindow;
31
32ARRAY_HEAD(HistoryArray, const char *);
33
38{
39 bool done;
40 bool selection;
41 struct Buffer *buf;
42 struct Menu *menu;
43 struct HistoryArray *matches;
44};
45
56typedef int (*history_function_t)(struct HistoryData *pd, int op);
57
62{
63 int op;
65};
66
67int history_function_dispatcher(struct MuttWindow *win, int op);
68
69#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:78
int(* history_function_t)(struct HistoryData *pd, int op)
Definition: functions.h:56
Convenience wrapper for the library headers.
String manipulation buffer.
Definition: buffer.h:36
Data to pass to the History Functions.
Definition: functions.h:38
struct Menu * menu
History Menu.
Definition: functions.h:42
struct Buffer * buf
Buffer for the results.
Definition: functions.h:41
struct HistoryArray * matches
History entries.
Definition: functions.h:43
bool done
Should we close the Dialog?
Definition: functions.h:39
bool selection
Was a selection made?
Definition: functions.h:40
A NeoMutt function.
Definition: functions.h:62
history_function_t function
Function to call.
Definition: functions.h:64
int op
Op code, e.g. OP_GENERIC_SELECT_ENTRY.
Definition: functions.h:63
Definition: lib.h:79