1 | #ifndef NVIM_TERMINAL_H |
2 | #define NVIM_TERMINAL_H |
3 | |
4 | #include <stddef.h> |
5 | #include <stdbool.h> |
6 | #include <stdint.h> |
7 | |
8 | typedef struct terminal Terminal; |
9 | typedef void (*terminal_write_cb)(char *buffer, size_t size, void *data); |
10 | typedef void (*terminal_resize_cb)(uint16_t width, uint16_t height, void *data); |
11 | typedef void (*terminal_close_cb)(void *data); |
12 | |
13 | #include "nvim/buffer_defs.h" |
14 | |
15 | typedef struct { |
16 | void *data; |
17 | uint16_t width, height; |
18 | terminal_write_cb write_cb; |
19 | terminal_resize_cb resize_cb; |
20 | terminal_close_cb close_cb; |
21 | } TerminalOptions; |
22 | |
23 | #ifdef INCLUDE_GENERATED_DECLARATIONS |
24 | # include "terminal.h.generated.h" |
25 | #endif |
26 | #endif // NVIM_TERMINAL_H |
27 | |