From 99617f7a2649674dff35e8bfa3d9b84244236778 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Sat, 4 Mar 2017 08:35:48 -0500 Subject: Fix duplicate binary API registration messages / bugs Changed vat_api_hookup(...) to _api_hookup, change to static functions. Fixed the related emacs-lisp plugin skeleton. Change-Id: Id14f8fc3138751f469d48fecb26175e938f5f028 Signed-off-by: Dave Barach --- src/examples/sample-plugin/sample/sample_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/examples/sample-plugin') diff --git a/src/examples/sample-plugin/sample/sample_test.c b/src/examples/sample-plugin/sample/sample_test.c index 6dd3a3e80e8..b3e71c760ac 100644 --- a/src/examples/sample-plugin/sample/sample_test.c +++ b/src/examples/sample-plugin/sample/sample_test.c @@ -137,7 +137,7 @@ static int api_sample_macswap_enable_disable (vat_main_t * vam) #define foreach_vpe_api_msg \ _(sample_macswap_enable_disable, " [disable]") -void vat_api_hookup (vat_main_t *vam) +static void sample_api_hookup (vat_main_t *vam) { sample_test_main_t * sm = &sample_test_main; /* Hook up handlers for replies from the data plane plug-in */ @@ -174,7 +174,7 @@ clib_error_t * vat_plugin_register (vat_main_t *vam) sm->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name); if (sm->msg_id_base != (u16) ~0) - vat_api_hookup (vam); + sample_api_hookup (vam); vec_free(name); -- cgit 1.2.3-korg