diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-07 17:59:16 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-12 19:28:30 -0300 |
commit | b3268d071277c8967b3e3ecb60430718e1f36472 (patch) | |
tree | 37fbdeb52835cd3fff0648301292aec12f25bb12 /src/msgpack_rpc.h | |
parent | fc22317389fa8713f27f5a754ee142ae003f5871 (diff) | |
download | rneovim-b3268d071277c8967b3e3ecb60430718e1f36472.tar.gz rneovim-b3268d071277c8967b3e3ecb60430718e1f36472.tar.bz2 rneovim-b3268d071277c8967b3e3ecb60430718e1f36472.zip |
Refactor API types and prototypes
- Split functions with multiple files in the 'api' subdirectory
- Move/Add more types in the 'api/defs.h' header
- Add more prototypes
- Refactor scripts/msgpack-gen.lua
- Move msgpack modules to 'os' subdirectory
Diffstat (limited to 'src/msgpack_rpc.h')
-rw-r--r-- | src/msgpack_rpc.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/msgpack_rpc.h b/src/msgpack_rpc.h deleted file mode 100644 index f713e5eeb5..0000000000 --- a/src/msgpack_rpc.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef NEOVIM_MSGPACK_RPC_H -#define NEOVIM_MSGPACK_RPC_H - -#include <stdint.h> -#include <stdbool.h> - -#include <msgpack.h> - -bool msgpack_rpc_call(msgpack_object *req, msgpack_packer *res); -bool msgpack_rpc_dispatch(msgpack_object *req, msgpack_packer *res); -void msgpack_rpc_response(msgpack_object *req, msgpack_packer *res); -void msgpack_rpc_success(msgpack_object *req, msgpack_packer *res); -bool msgpack_rpc_error(msgpack_object *req, msgpack_packer *res, char *msg); -char **msgpack_rpc_array_argument(msgpack_object *obj); -char *msgpack_rpc_raw_argument(msgpack_object *obj); -uint32_t msgpack_rpc_integer_argument(msgpack_object *obj); -bool msgpack_rpc_array_result(char **result, - msgpack_object *req, - msgpack_packer *res); -bool msgpack_rpc_raw_result(char *result, - msgpack_object *req, - msgpack_packer *res); -bool msgpack_rpc_integer_result(uint32_t result, - msgpack_object *req, - msgpack_packer *res); -bool msgpack_rpc_void_result(msgpack_object *req, msgpack_packer *res); - - -#endif // NEOVIM_MSGPACK_RPC_H - |