NeoMutt  2024-12-12-19-ge4b57e
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
search_state.h
Go to the documentation of this file.
1
24#ifndef MUTT_PATTERN_SEARCH_STATE_H
25#define MUTT_PATTERN_SEARCH_STATE_H
26
27#include <stdbool.h>
28#include <stdint.h>
29
36{
37 struct PatternList *pattern;
38 struct Buffer *string;
40 bool reverse;
41};
42
43typedef uint8_t SearchFlags;
44#define SEARCH_NO_FLAGS 0
45#define SEARCH_PROMPT (1 << 0)
46#define SEARCH_OPPOSITE (1 << 1)
47
48struct SearchState *search_state_new(void);
50
51#endif /* MUTT_PATTERN_SEARCH_STATE_H */
static int search(struct Menu *menu, int op)
Search a menu.
Definition: functions.c:58
uint8_t SearchFlags
Flags for a specific search, e.g. SEARCH_PROMPT.
Definition: search_state.h:43
struct SearchState * search_state_new(void)
Create a new SearchState.
Definition: search_state.c:39
void search_state_free(struct SearchState **search)
Free a SearchState.
Definition: search_state.c:51
String manipulation buffer.
Definition: buffer.h:36
Holds state of a search.
Definition: search_state.h:36
struct Buffer * string
search string
Definition: search_state.h:38
struct Buffer * string_expn
expanded search string
Definition: search_state.h:39
bool reverse
search backwards
Definition: search_state.h:40
struct PatternList * pattern
compiled search pattern
Definition: search_state.h:37