wstream.h
Go to the documentation of this file.
1 #ifndef NVIM_EVENT_WSTREAM_H
2 #define NVIM_EVENT_WSTREAM_H
3 
4 #include <stdint.h>
5 #include <stdbool.h>
6 
7 #include <uv.h>
8 
9 #include "nvim/event/loop.h"
10 #include "nvim/event/stream.h"
11 
12 typedef struct wbuffer WBuffer;
13 typedef void (*wbuffer_data_finalizer)(void *data);
14 
15 struct wbuffer {
16  size_t size, refcount;
17  char *data;
19 };
20 
21 #ifdef INCLUDE_GENERATED_DECLARATIONS
22 # include "event/wstream.h.generated.h"
23 #endif
24 #endif // NVIM_EVENT_WSTREAM_H
size_t size
Definition: wstream.h:16
char * data
Definition: wstream.h:17
wbuffer_data_finalizer cb
Definition: wstream.h:18
Definition: wstream.h:15
size_t refcount
Definition: wstream.h:16
void(* wbuffer_data_finalizer)(void *data)
Definition: wstream.h:13