Prototype for a Pattern Function.
More...
Prototype for a Pattern Function.
- Parameters
-
menu | Menu |
op | Operation to perform, e.g. OP_GENERIC_SELECT_ENTRY |
- Return values
-
◆ op_generic_select_entry()
static int op_generic_select_entry |
( |
struct PatternData * |
pd, |
|
|
int |
op |
|
) |
| |
|
static |
Select the current entry - Implements pattern_function_t -.
Definition at line 42 of file functions.c.
43{
46
47 if (entry)
49
53}
#define ARRAY_GET(head, idx)
Return the element at index.
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
@ FR_SUCCESS
Valid function - successfully performed.
struct Menu * menu
Pattern Menu.
struct PatternEntryArray entries
Patterns for the Menu.
bool done
Should we close the Dialog?
struct Buffer * buf
Buffer for the results.
bool selection
Was a selection made?
A line in the Pattern Completion menu.
const char * tag
Copied to buffer if selected.
◆ op_quit()