diff options
author | Damjan Marion <damarion@cisco.com> | 2020-10-17 13:33:32 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-10-19 10:06:38 +0000 |
commit | 931c6f54bad50d880560e8705e08b16bf8a19337 (patch) | |
tree | 2c021cdeedf77557308afbf6797e5338b6c9c547 /src/plugins | |
parent | 07619240c295b6f068609d5603dba8601dbd72a0 (diff) |
misc: don't export symbols from plugins
Type: improvement
Change-Id: I2a176fe2871d2e54b010bffc4f1f7a3616f0c455
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/acl/lookup_context.c | 3 | ||||
-rw-r--r-- | src/plugins/dpdk/main.c | 2 | ||||
-rw-r--r-- | src/plugins/http_static/static_server.c | 2 | ||||
-rw-r--r-- | src/plugins/ioam/lib-trace/trace_util.c | 2 | ||||
-rw-r--r-- | src/plugins/l2e/l2e.c | 4 |
5 files changed, 7 insertions, 6 deletions
diff --git a/src/plugins/acl/lookup_context.c b/src/plugins/acl/lookup_context.c index 5344975402e..ed9b2c7da21 100644 --- a/src/plugins/acl/lookup_context.c +++ b/src/plugins/acl/lookup_context.c @@ -359,7 +359,8 @@ acl_plugin_get_p_acl_main(void) return &acl_main; } -clib_error_t *acl_plugin_methods_vtable_init(acl_plugin_methods_t *m) +__clib_export clib_error_t * +acl_plugin_methods_vtable_init(acl_plugin_methods_t *m) { m->p_acl_main = &acl_main; #define _(name) m->name = acl_plugin_ ## name; diff --git a/src/plugins/dpdk/main.c b/src/plugins/dpdk/main.c index ea0348a5e7f..ef93a224ef9 100644 --- a/src/plugins/dpdk/main.c +++ b/src/plugins/dpdk/main.c @@ -99,7 +99,7 @@ VLIB_INIT_FUNCTION (dpdk_main_init) = /* *INDENT-ON* */ -clib_error_t * +__clib_export clib_error_t * dpdk_early_init (vlib_main_t *vm) { int fd = -1; diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c index 4db3eadd940..b61243ab19e 100644 --- a/src/plugins/http_static/static_server.c +++ b/src/plugins/http_static/static_server.c @@ -521,7 +521,7 @@ close_session (http_session_t * hs) /** \brief Register a builtin GET or POST handler */ -void http_static_server_register_builtin_handler +__clib_export void http_static_server_register_builtin_handler (void *fp, char *url, int request_type) { http_static_server_main_t *hsm = &http_static_server_main; diff --git a/src/plugins/ioam/lib-trace/trace_util.c b/src/plugins/ioam/lib-trace/trace_util.c index af92513685f..d935543cf23 100644 --- a/src/plugins/ioam/lib-trace/trace_util.c +++ b/src/plugins/ioam/lib-trace/trace_util.c @@ -20,7 +20,7 @@ #include "trace_util.h" #include "trace_config.h" -trace_main_t trace_main; +__clib_export trace_main_t trace_main; static int trace_profile_cleanup (trace_profile * profile) diff --git a/src/plugins/l2e/l2e.c b/src/plugins/l2e/l2e.c index 01f7788efce..791c3f67cb6 100644 --- a/src/plugins/l2e/l2e.c +++ b/src/plugins/l2e/l2e.c @@ -27,7 +27,7 @@ l2_emulation_main_t l2_emulation_main; */ static const l2_emulation_t ezero = { }; -void +__clib_export void l2_emulation_enable (u32 sw_if_index) { l2_emulation_main_t *em = &l2_emulation_main; @@ -49,7 +49,7 @@ l2_emulation_enable (u32 sw_if_index) } -void +__clib_export void l2_emulation_disable (u32 sw_if_index) { l2_emulation_main_t *em = &l2_emulation_main; |