terminal.h
Go to the documentation of this file.
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;
22 
23 #ifdef INCLUDE_GENERATED_DECLARATIONS
24 # include "terminal.h.generated.h"
25 #endif
26 #endif // NVIM_TERMINAL_H
terminal_resize_cb resize_cb
Definition: terminal.h:19
void(* terminal_close_cb)(void *data)
Definition: terminal.h:11
void(* terminal_write_cb)(char *buffer, size_t size, void *data)
Definition: terminal.h:9
terminal_write_cb write_cb
Definition: terminal.h:18
void(* terminal_resize_cb)(uint16_t width, uint16_t height, void *data)
Definition: terminal.h:10
Definition: terminal.h:15
void * data
Definition: terminal.h:16
terminal_close_cb close_cb
Definition: terminal.h:20
Definition: terminal.c:105
uint16_t width
Definition: terminal.h:17