plugins: Let plugins fill GeanyPlugin::callbacks instead of passing their own pointer
commitbabf0083353b1d3501fee439b6228c2fbe84cc82
authorThomas Martitz <kugel@rockbox.org>
Sun, 23 Aug 2015 13:23:22 +0000 (23 15:23 +0200)
committerThomas Martitz <kugel@rockbox.org>
Sun, 23 Aug 2015 13:23:22 +0000 (23 15:23 +0200)
tree6580982fc0b54f9cefec7ebc6d7d64e8b9e93967
parent721009e262e9bc279122566a60e14af0048d9094
plugins: Let plugins fill GeanyPlugin::callbacks instead of passing their own pointer

This is easier to handle if we decide to add callbacks. Since we can
zero-initialize callbacks before passing it to the plugin we can be certain as
to which callbacks the plugin knew about when it was compiled. This is exactly
the same method used for GeanyPlugin::info already and easier than inspecting
the API version.
src/plugindata.h
src/plugins.c