NeoMutt  2023-11-03-85-g512e01
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1
23#ifndef MUTT_EDITOR_FUNCTIONS_H
24#define MUTT_EDITOR_FUNCTIONS_H
25
26#include <stdbool.h>
27#include <stddef.h>
28
29struct EnterState;
30struct EnterWindowData;
31struct MuttWindow;
32
42typedef int (*enter_function_t)(struct EnterWindowData *wdata, int op);
43
53typedef int (*complete_function_t)(struct EnterWindowData *wdata, int op);
54
59{
60 int op;
62};
63
64int enter_function_dispatcher(struct MuttWindow *win, int op);
65bool self_insert(struct EnterWindowData *wdata, int ch);
66void replace_part(struct EnterState *es, size_t from, const char *buf);
67
68#endif /* MUTT_EDITOR_FUNCTIONS_H */
int(* complete_function_t)(struct EnterWindowData *wdata, int op)
Definition: functions.h:53
int(* enter_function_t)(struct EnterWindowData *wdata, int op)
Definition: functions.h:42
void replace_part(struct EnterState *es, size_t from, const char *buf)
Search and replace on a buffer.
Definition: functions.c:132
bool self_insert(struct EnterWindowData *wdata, int ch)
Insert a normal character.
Definition: window.c:90
int enter_function_dispatcher(struct MuttWindow *win, int op)
Perform an Enter function - Implements function_dispatcher_t -.
Definition: functions.c:482
A NeoMutt function.
Definition: functions.h:59
int op
Op code, e.g. OP_SEARCH.
Definition: functions.h:60
enter_function_t function
Function to call.
Definition: functions.h:61
Keep our place when entering a string.
Definition: state.h:32
Data to fill the Enter Window.
Definition: wdata.h:46