diff options
author | Anlu Yan <ayan@cisco.com> | 2017-02-14 18:07:40 -0800 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-02-16 15:09:26 +0000 |
commit | a4cb12b30d51be3463315688179297404783fe8d (patch) | |
tree | 66bbe4f2a622e72648f503ba845d142dff97f084 /src/examples/sample-plugin/sample/sample.h | |
parent | b33f413af46ec8dff7f222dbd5bc3bcec1502d3d (diff) |
Fix sample plugin breakage.
Add vat_helper_macros.h to be installed in /usr/include/vlibapi
Define a version for the sample plugin (separate from the VPP versioning).
Hook up vnet_main in plugin init.
Change-Id: I293b9dc824d0813ea2bb8747d535e4210a88b385
Signed-off-by: Anlu Yan <ayan@cisco.com>
Diffstat (limited to 'src/examples/sample-plugin/sample/sample.h')
-rw-r--r-- | src/examples/sample-plugin/sample/sample.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/sample-plugin/sample/sample.h b/src/examples/sample-plugin/sample/sample.h index 6137ffff487..c9778f74298 100644 --- a/src/examples/sample-plugin/sample/sample.h +++ b/src/examples/sample-plugin/sample/sample.h @@ -28,13 +28,13 @@ typedef struct { u16 msg_id_base; /* convenience */ - vlib_main_t * vlib_main; vnet_main_t * vnet_main; - ethernet_main_t * ethernet_main; } sample_main_t; sample_main_t sample_main; extern vlib_node_registration_t sample_node; +#define SAMPLE_PLUGIN_BUILD_VER "1.0" + #endif /* __included_sample_h__ */ |