NeoMutt  2022-04-29-247-gc6aae8
Teaching an old dog new tricks
DOXYGEN
functions.h
Go to the documentation of this file.
1
23#ifndef MUTT_PATTERN_FUNCTIONS_H
24#define MUTT_PATTERN_FUNCTIONS_H
25
26#include <stdbool.h>
27#include <stdio.h>
28
29struct MuttWindow;
30
35{
36 bool done;
37 bool selection;
38 char *buf;
39 size_t buflen;
40 struct Menu *menu;
41};
42
53typedef int (*pattern_function_t)(struct PatternData *pd, int op);
54
59{
60 int op;
62};
63
64extern struct PatternFunction PatternFunctions[];
65
66int pattern_function_dispatcher(struct MuttWindow *win, int op);
67
68#endif /* MUTT_PATTERN_FUNCTIONS_H */
int pattern_function_dispatcher(struct MuttWindow *win, int op)
Perform a Pattern function - Implements function_dispatcher_t -.
Definition: functions.c:78
int(* pattern_function_t)(struct PatternData *pd, int op)
Definition: functions.h:53
struct PatternFunction PatternFunctions[]
All the NeoMutt functions that the Pattern supports.
Definition: functions.c:67
Definition: lib.h:69
Data to pass to the Pattern Functions.
Definition: functions.h:35
char * buf
Buffer for the results.
Definition: functions.h:38
struct Menu * menu
Pattern Menu.
Definition: functions.h:40
bool done
Should we close the Dialog?
Definition: functions.h:36
size_t buflen
Length of the results buffer.
Definition: functions.h:39
bool selection
Was a selection made?
Definition: functions.h:37
A NeoMutt function.
Definition: functions.h:59
int op
Op code, e.g. OP_GENERIC_SELECT_ENTRY.
Definition: functions.h:60
pattern_function_t function
Function to call.
Definition: functions.h:61