This allows plugins to detect the API version of Geany at runtime. This enables switching behavior based on the API version (perhaps using a new feature with a fallback for older API versions). Previously the only alternatives were to hard-depend on a more recent Geany version or ignoring new features. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1406
-- Commit Summary --
* api: new function geany_api_version
-- File Changes --
M src/plugindata.h (2) M src/pluginutils.c (9) M src/pluginutils.h (1)
-- Patch Links --
https://github.com/geany/geany/pull/1406.patch https://github.com/geany/geany/pull/1406.diff