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_PATTERN_FUNCTIONS_H
24
#define MUTT_PATTERN_FUNCTIONS_H
25
26
struct
KeyEvent
;
27
struct
MuttWindow
;
28
32
struct
PatternFunctionData
33
{
34
struct
NeoMutt
*
n
;
35
struct
PatternData
*
pd
;
36
};
37
51
typedef
int (*
pattern_function_t
)(
struct
PatternFunctionData
*fdata,
const
struct
KeyEvent
*event);
52
56
struct
PatternFunction
57
{
58
int
op
;
59
pattern_function_t
function
;
60
};
61
62
int
pattern_function_dispatcher
(
struct
MuttWindow
*win,
const
struct
KeyEvent
*event);
63
64
#endif
/* MUTT_PATTERN_FUNCTIONS_H */
pattern_function_dispatcher
int pattern_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Pattern function - Implements function_dispatcher_t -.
Definition
functions.c:90
pattern_function_t
int(* pattern_function_t)(struct PatternFunctionData *fdata, const struct KeyEvent *event)
Definition
functions.h:51
KeyEvent
An event such as a keypress.
Definition
get.h:75
MuttWindow
Definition
mutt_window.h:129
NeoMutt
Container for Accounts, Notifications.
Definition
neomutt.h:41
PatternData
Data to pass to the Pattern Functions.
Definition
pattern_data.h:47
PatternFunctionData
Data passed to Pattern worker functions.
Definition
functions.h:33
PatternFunctionData::n
struct NeoMutt * n
NeoMutt application data.
Definition
functions.h:34
PatternFunctionData::pd
struct PatternData * pd
Pattern data.
Definition
functions.h:35
PatternFunction
A NeoMutt function.
Definition
functions.h:57
PatternFunction::op
int op
Op code, e.g. OP_GENERIC_SELECT_ENTRY.
Definition
functions.h:58
PatternFunction::function
pattern_function_t function
Function to call.
Definition
functions.h:59