aboutsummaryrefslogtreecommitdiff
path: root/scripts/msgpack-gen.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-06-02 10:36:36 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-06-02 10:36:36 -0300
commit52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853 (patch)
tree72498bef8cff7aa5b62cfe8894485b89e1b6435a /scripts/msgpack-gen.lua
parenta2e9580801e89f8fa6e1e3f0ccb3d4a740d7ac03 (diff)
parent8f7d370f18da5a9f71fdc3c36cd717e1559eed18 (diff)
downloadrneovim-52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853.tar.gz
rneovim-52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853.tar.bz2
rneovim-52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853.zip
Merge pull request #779 'Add --api-msgpack-metadata command line option'
Diffstat (limited to 'scripts/msgpack-gen.lua')
-rw-r--r--scripts/msgpack-gen.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/msgpack-gen.lua b/scripts/msgpack-gen.lua
index fac1b10b45..8d7bb8ea59 100644
--- a/scripts/msgpack-gen.lua
+++ b/scripts/msgpack-gen.lua
@@ -100,7 +100,7 @@ end
output:write([[
-static const uint8_t msgpack_metadata[] = {
+const uint8_t msgpack_metadata[] = {
]])
-- serialize the API metadata using msgpack and embed into the resulting
@@ -116,6 +116,7 @@ end
-- usually it is the first function called by clients.
output:write([[
};
+const unsigned int msgpack_metadata_size = sizeof(msgpack_metadata);
void msgpack_rpc_dispatch(uint64_t channel_id, msgpack_object *req, msgpack_packer *res)
{