plugins: Clarify which API functions may be called within geany_load_module()
commit765000be92262cb3395de82fa933511b6635c9be
authorThomas Martitz <kugel@rockbox.org>
Sun, 23 Aug 2015 13:23:39 +0000 (23 15:23 +0200)
committerThomas Martitz <kugel@rockbox.org>
Sun, 23 Aug 2015 18:01:42 +0000 (23 20:01 +0200)
treee498e79e71c8759fe57b758b6a4691074a955f33
parent437837d3a54367393c41d6c1e1f4d1af4481627e
plugins: Clarify which API functions may be called within geany_load_module()

Since geany_load_module() is called for non-enabled plugins you may not
use the plugin API here yet. The only exceptions to this rule are API functions
required for plugin registration.

This rule is hard to enforce (would need to g_return_if_val(PLUGIN_LOADED_OK(p))
for all API functions (well, those taking a plugin pointer anyway), so this
rule is only documented for now.
doc/plugins.dox
src/plugindata.h