NeoMutt
2024-12-12-14-g7b49f7
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
29
struct
Menu
;
30
34
struct
PatternEntry
35
{
36
int
num
;
37
const
char
*
tag
;
38
const
char
*
expr
;
39
const
char
*
desc
;
40
};
41
ARRAY_HEAD
(PatternEntryArray,
struct
PatternEntry
);
42
46
struct
PatternData
47
{
48
bool
done
;
49
bool
selection
;
50
struct
Buffer
*
buf
;
51
struct
Menu
*
menu
;
52
struct
PatternEntryArray
entries
;
53
};
54
55
struct
PatternData
*
pattern_data_new
(
void
);
56
void
pattern_data_free
(
struct
Menu
*
menu
,
void
**ptr);
57
58
#endif
/* MUTT_PATTERN_PATTERN_DATA_H */
ARRAY_HEAD
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition:
array.h:47
pattern_data_free
void pattern_data_free(struct Menu *menu, void **ptr)
Free Pattern Data - Implements Menu::mdata_free() -.
Definition:
pattern_data.c:49
lib.h
Convenience wrapper for the library headers.
pattern_data_new
struct PatternData * pattern_data_new(void)
Create new Pattern Data.
Definition:
pattern_data.c:37
Buffer
String manipulation buffer.
Definition:
buffer.h:36
Menu
Definition:
lib.h:79
PatternData
Data to pass to the Pattern Functions.
Definition:
pattern_data.h:47
PatternData::menu
struct Menu * menu
Pattern Menu.
Definition:
pattern_data.h:51
PatternData::entries
struct PatternEntryArray entries
Patterns for the Menu.
Definition:
pattern_data.h:52
PatternData::done
bool done
Should we close the Dialog?
Definition:
pattern_data.h:48
PatternData::buf
struct Buffer * buf
Buffer for the results.
Definition:
pattern_data.h:50
PatternData::selection
bool selection
Was a selection made?
Definition:
pattern_data.h:49
PatternEntry
A line in the Pattern Completion menu.
Definition:
pattern_data.h:35
PatternEntry::desc
const char * desc
Description of pattern.
Definition:
pattern_data.h:39
PatternEntry::tag
const char * tag
Copied to buffer if selected.
Definition:
pattern_data.h:37
PatternEntry::num
int num
Index number.
Definition:
pattern_data.h:36
PatternEntry::expr
const char * expr
Displayed in the menu.
Definition:
pattern_data.h:38