It’s OK to look up symbols e.g. using vlib_get_plugin_symbol(...). If the two 
plugins can’t operate independently of each other – even in the sense of A will 
work without B, but not vice-versa - you might as well combine them.

HTH... Dave

From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of 
satish.gu...@gmail.com
Sent: Thursday, February 28, 2019 11:10 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Calling functions across plugins

Hi VPP-Dev,

I have two VPP plugins A and B.
Plugin-A needs to call function in plugin-B.

Currently, we are using dlopen/dlsym to get the function pointer of function-B 
in function-A and made it working.
But is this the correct way to do it in VPP? (or) does VPP have any other 
standard way of achieving this.

Also, does this drive me towards plugin-A and plugin-B into a single plugin-C.

In nut shell, calling functions across plugins, is this a common thing in VPP 
architecture ? (or) is this something we need to avoid for any reasons ?

Thanks & Regards,
Satish
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12392): https://lists.fd.io/g/vpp-dev/message/12392
Mute This Topic: https://lists.fd.io/mt/30164897/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to