diff options
author | Ole Troan <ot@cisco.com> | 2019-10-09 14:38:14 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-10 09:14:05 +0000 |
commit | 709dad304f3c03df156fc326628a4c8fa80370b0 (patch) | |
tree | 2ad87f28a1c319c31917f3daae8c932474767f3a /src/tools/vppapigen | |
parent | 18cd91c61116f49468ac4596cddb4f1f8fc04bbc (diff) |
acl: remove api boilerplate
Type: refactor
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Idc9c508eb0e3d4b0c3908360fb0771012a8e2bc0
Diffstat (limited to 'src/tools/vppapigen')
-rw-r--r-- | src/tools/vppapigen/vppapigen_c.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/vppapigen/vppapigen_c.py b/src/tools/vppapigen/vppapigen_c.py index 00b804dc853..a7f4b7dd9b1 100644 --- a/src/tools/vppapigen/vppapigen_c.py +++ b/src/tools/vppapigen/vppapigen_c.py @@ -718,6 +718,9 @@ def generate_c_test_plugin_boilerplate(services, defines, file_crc, module, stre write(' if (mainp->msg_id_base == (u16) ~0)\n') write(' return clib_error_return (0, "{} plugin not loaded...");\n'.format(module)) write(' setup_message_id_table (vam, mainp->msg_id_base);\n') + write('#ifdef VL_API_LOCAL_SETUP_MESSAGE_ID_TABLE\n') + write(' VL_API_LOCAL_SETUP_MESSAGE_ID_TABLE(vam);\n') + write('#endif\n') write(' return 0;\n') write('}\n') |