[panda-users] problems with plugin api calls

Manolis Stamatogiannakis mstamat at gmail.com
Sun Apr 19 18:56:46 EDT 2015


I'm having problems with using the plugin api to make calls across plugins.
Is there an implicit assumption that plugins should consist of a single
file?

Here are the steps I make:
(1) define the function in pluginA_int_fns.h
(2) include this header in pluginA_int.h
(3) implement the function in pluginA.cpp

(4) include generated pluginA_ext.h from pluginB.cpp
(5) call init_pluginA_api() without problems
(6) include generated pluginA_ext.h from pluginB_module.cpp
(7) make the API call from within pluginB_module.cpp

Everything compiles fine, but at runtime I hit the assertion error in the
function definition in pluginA_ext.h.
I added some printfs and __api_call is not NULL just after
init_pluginA_api() in pluginB.cpp. However, it is NULL inside
pluginB_module.cpp.

Any ideas how could that happen? Am I missing something in the picture?

Thanks,
Manolis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/panda-users/attachments/20150419/7683e94a/attachment.htm


More information about the panda-users mailing list