Add --api-metadata command line option

- New command line option prints the binary API metadata object
  and exits
This commit is contained in:
Rui Abreu Ferreira
2014-05-29 15:42:08 +01:00
committed by Thiago de Arruda
parent a2e9580801
commit 1971cc30b5
2 changed files with 10 additions and 1 deletions

View File

@@ -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)
{