acl-plugin: acl-as-a-service: VPP-1248: fix the error if exports.h included in more... 53/11953/1
authorAndrew Yourtchenko <[email protected]>
Fri, 20 Apr 2018 08:55:24 +0000 (10:55 +0200)
committerAndrew Yourtchenko <[email protected]>
Fri, 20 Apr 2018 08:55:24 +0000 (10:55 +0200)
commitfd2e3765219ad6c47d24e82e9bbf2d54d5b6b207
tree5187c7a33f1ce94751160e61c56c70f93162bc82
parent774bfc36bb2971687cc775d181ebaf0916803baf
acl-plugin: acl-as-a-service: VPP-1248: fix the error if exports.h included in more than one C file

Including the exports.h from multiple .c files belonging to a single plugin results in an error.

Fix that by making all the exported function pointers static, so every place
which includes the exports.h gets its own copy of function pointers.
This will also require to call separately the acl_plugin_exports_init() per file
to initialize them.

Change-Id: Icb70695efa23579c46c716944838766cebc8573e
Signed-off-by: Andrew Yourtchenko <[email protected]>
src/plugins/acl/acl.h
src/plugins/acl/public_inlines.h