diff options
Diffstat (limited to 'src/plugins/linux-cp/lcp_interface.h')
-rw-r--r-- | src/plugins/linux-cp/lcp_interface.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/linux-cp/lcp_interface.h b/src/plugins/linux-cp/lcp_interface.h index be566a07cb6..bed30248845 100644 --- a/src/plugins/linux-cp/lcp_interface.h +++ b/src/plugins/linux-cp/lcp_interface.h @@ -150,6 +150,16 @@ lcp_itf_pair_find_by_host (u32 host_sw_if_index) void lcp_set_auto_intf (u8 is_auto); int lcp_auto_intf (void); +typedef void (*lcp_itf_pair_add_cb_t) (lcp_itf_pair_t *); +typedef void (*lcp_itf_pair_del_cb_t) (lcp_itf_pair_t *); + +typedef struct lcp_itf_pair_vft +{ + lcp_itf_pair_add_cb_t pair_add_fn; + lcp_itf_pair_del_cb_t pair_del_fn; +} lcp_itf_pair_vft_t; + +void lcp_itf_pair_register_vft (lcp_itf_pair_vft_t *lcp_itf_vft); /* * fd.io coding-style-patch-verification: ON * |