Hi, As using pointers to call plugin API functions is a bit ugly, I've been planning on writing a wrapper shared library. But perhaps that is unnecessary, perhaps macros would do instead:
#define plugin_add_toolbar_item \ p_plugin->add_toolbar_item
Are there any problems with this approach?
The attached script genapi.py currently does this for all API functions, put it in the src/ folder:
$ cd src $ python genapi.py Generated geanyfunctions.h
Regards, Nick