[Geany-devel] Generating an API functions wrapper
Nick Treleaven
nick.treleaven at xxxxx
Mon Nov 24 17:20:51 UTC 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genapi.py
Type: application/octet-stream
Size: 1525 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20081124/4c044c54/attachment.obj>
More information about the Devel
mailing list