NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_HISTORY_FUNCTIONS_H
24
#define MUTT_HISTORY_FUNCTIONS_H
25
26
#include <stdbool.h>
27
28
struct
KeyEvent
;
29
struct
MuttWindow
;
30
34
struct
HistoryData
35
{
36
bool
done
;
37
bool
selection
;
38
struct
Buffer
*
buf
;
39
struct
Menu
*
menu
;
40
struct
StringArray *
matches
;
41
};
42
56
typedef
int (*
history_function_t
)(
struct
HistoryData
*pd,
const
struct
KeyEvent
*event);
57
61
struct
HistoryFunction
62
{
63
int
op
;
64
history_function_t
function
;
65
};
66
67
int
history_function_dispatcher
(
struct
MuttWindow
*win,
const
struct
KeyEvent
*event);
68
69
#endif
/* MUTT_HISTORY_FUNCTIONS_H */
history_function_dispatcher
int history_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a History function - Implements function_dispatcher_t -.
Definition
functions.c:85
history_function_t
int(* history_function_t)(struct HistoryData *pd, const struct KeyEvent *event)
Definition
functions.h:56
Buffer
String manipulation buffer.
Definition
buffer.h:36
HistoryData
Data to pass to the History Functions.
Definition
functions.h:35
HistoryData::menu
struct Menu * menu
History Menu.
Definition
functions.h:39
HistoryData::buf
struct Buffer * buf
Buffer for the results.
Definition
functions.h:38
HistoryData::matches
struct StringArray * matches
History entries.
Definition
functions.h:40
HistoryData::done
bool done
Should we close the Dialog?
Definition
functions.h:36
HistoryData::selection
bool selection
Was a selection made?
Definition
functions.h:37
HistoryFunction
A NeoMutt function.
Definition
functions.h:62
HistoryFunction::function
history_function_t function
Function to call.
Definition
functions.h:64
HistoryFunction::op
int op
Op code, e.g. OP_GENERIC_SELECT_ENTRY.
Definition
functions.h:63
KeyEvent
An event such as a keypress.
Definition
get.h:75
Menu
Definition
lib.h:86
MuttWindow
Definition
mutt_window.h:129