NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
pattern_data.h
Go to the documentation of this file.
1
23#ifndef MUTT_PATTERN_PATTERN_DATA_H
24#define MUTT_PATTERN_PATTERN_DATA_H
25
26#include <stdbool.h>
27#include "mutt/lib.h"
28
29struct Menu;
30
35{
36 int num;
37 const char *tag;
38 const char *expr;
39 const char *desc;
40};
41ARRAY_HEAD(PatternEntryArray, struct PatternEntry);
42
47{
48 bool done;
49 bool selection;
50 struct Buffer *buf;
51 struct Menu *menu;
52 struct PatternEntryArray entries;
53};
54
55struct PatternData *pattern_data_new(void);
56void pattern_data_free(struct Menu *menu, void **ptr);
57
58#endif /* MUTT_PATTERN_PATTERN_DATA_H */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:47
void pattern_data_free(struct Menu *menu, void **ptr)
Free Pattern Data - Implements Menu::mdata_free() -.
Definition: pattern_data.c:49
Convenience wrapper for the library headers.
struct PatternData * pattern_data_new(void)
Create new Pattern Data.
Definition: pattern_data.c:37
String manipulation buffer.
Definition: buffer.h:36
Definition: lib.h:79
Data to pass to the Pattern Functions.
Definition: pattern_data.h:47
struct Menu * menu
Pattern Menu.
Definition: pattern_data.h:51
struct PatternEntryArray entries
Patterns for the Menu.
Definition: pattern_data.h:52
bool done
Should we close the Dialog?
Definition: pattern_data.h:48
struct Buffer * buf
Buffer for the results.
Definition: pattern_data.h:50
bool selection
Was a selection made?
Definition: pattern_data.h:49
A line in the Pattern Completion menu.
Definition: pattern_data.h:35
const char * desc
Description of pattern.
Definition: pattern_data.h:39
const char * tag
Copied to buffer if selected.
Definition: pattern_data.h:37
int num
Index number.
Definition: pattern_data.h:36
const char * expr
Displayed in the menu.
Definition: pattern_data.h:38