diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-03 11:46:35 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-12 13:25:28 -0300 |
commit | c39ae3e4d475c868f8ba76116735501ea97dfae1 (patch) | |
tree | 3950b82edf564f2938924a3e7db55201eb7c055f /src/nvim/map.h | |
parent | e2143674ae20fbadbea004bd54d6f5dc32b83803 (diff) | |
download | rneovim-c39ae3e4d475c868f8ba76116735501ea97dfae1.tar.gz rneovim-c39ae3e4d475c868f8ba76116735501ea97dfae1.tar.bz2 rneovim-c39ae3e4d475c868f8ba76116735501ea97dfae1.zip |
map/msgpack-rpc: Declare/define maps rpc method handlers
The new map type uses `String` instances as keys to avoid unnecessary copying to
zero-terminated buffers.
Diffstat (limited to 'src/nvim/map.h')
-rw-r--r-- | src/nvim/map.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/map.h b/src/nvim/map.h index 73698cba22..616516c3e1 100644 --- a/src/nvim/map.h +++ b/src/nvim/map.h @@ -4,6 +4,8 @@ #include <stdbool.h> #include "nvim/map_defs.h" +#include "nvim/api/private/defs.h" +#include "nvim/os/msgpack_rpc.h" #define MAP_DECLS(T, U) \ KHASH_DECLARE(T##_##U##_map, T, U) \ @@ -23,6 +25,7 @@ MAP_DECLS(cstr_t, uint64_t) MAP_DECLS(cstr_t, ptr_t) MAP_DECLS(ptr_t, ptr_t) MAP_DECLS(uint64_t, ptr_t) +MAP_DECLS(String, rpc_method_handler_fn) #define map_new(T, U) map_##T##_##U##_new #define map_free(T, U) map_##T##_##U##_free |