From 1971cc30b50ba77f55c7693eff716e564ce5c8e2 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Thu, 29 May 2014 15:42:08 +0100 Subject: Add --api-metadata command line option - New command line option prints the binary API metadata object and exits --- scripts/msgpack-gen.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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) { -- cgit