1 | #ifndef NVIM_MSGPACK_RPC_HELPERS_H |
2 | #define NVIM_MSGPACK_RPC_HELPERS_H |
3 | |
4 | #include <stdint.h> |
5 | #include <stdbool.h> |
6 | |
7 | #include <msgpack.h> |
8 | |
9 | #include "nvim/event/wstream.h" |
10 | #include "nvim/api/private/defs.h" |
11 | |
12 | /// Value by which objects represented as EXT type are shifted |
13 | /// |
14 | /// Subtracted when packing, added when unpacking. Used to allow moving |
15 | /// buffer/window/tabpage block inside ObjectType enum. This block yet cannot be |
16 | /// split or reordered. |
17 | #define EXT_OBJECT_TYPE_SHIFT kObjectTypeBuffer |
18 | |
19 | #ifdef INCLUDE_GENERATED_DECLARATIONS |
20 | # include "msgpack_rpc/helpers.h.generated.h" |
21 | #endif |
22 | |
23 | #endif // NVIM_MSGPACK_RPC_HELPERS_H |
24 | |
25 | |