diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2021-04-21 05:18:40 +0000 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2021-04-20 22:45:35 -0700 |
commit | f57cfd615971d0109e8a10e318214efdca3ecf7b (patch) | |
tree | d5b805eafd73a171177ab300dfd4a11ca883e7a0 | |
parent | 2d251e2d2b19f14a7f02fe1f922f148c751df402 (diff) | |
download | rabbitmq-c-f57cfd615971d0109e8a10e318214efdca3ecf7b.tar.gz |
lib: add tool to framing.h/amqp_framing.c
Signed-off-by: GitHub <noreply@github.com>
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | regenerate_framing.sh | 17 |
2 files changed, 18 insertions, 0 deletions
@@ -74,3 +74,4 @@ tools/doc/man-date.ent .venv/ .cache/ compile_commands.json +codegen/ diff --git a/regenerate_framing.sh b/regenerate_framing.sh new file mode 100755 index 0000000..7d275d8 --- /dev/null +++ b/regenerate_framing.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +RMQ_VERSION=3.8.14 +DATA=${PWD}/codegen/rabbitmq-server-${RMQ_VERSION}/deps/rabbitmq_codegen/amqp-rabbitmq-0.9.1.json +export PYTHONPATH=${PWD}/codegen/rabbitmq-server-${RMQ_VERSION}/deps/rabbitmq_codegen + +rm -rf codegen +mkdir codegen + +wget -c https://github.com/rabbitmq/rabbitmq-server/releases/download/v${RMQ_VERSION}/rabbitmq-server-${RMQ_VERSION}.tar.xz -O - | tar -xJ -C codegen + +python2 librabbitmq/codegen.py header ${DATA} include/rabbitmq-c/framing.h +python2 librabbitmq/codegen.py body ${DATA} librabbitmq/amqp_framing.c + +clang-format -i include/rabbitmq-c/framing.h librabbitmq/amqp_framing.c
\ No newline at end of file |