@techee commented on this pull request.


In src/pluginextension.h:

> + * or dynamically. When allocated dynamically, plugins should always
+ * zero-fill the structure before use.
+ * 
+ * Depending on the functionality they provide, plugins should assign the
+ * pointers from the structure to the functions implementing this interface.
+ * Not all of the functions have to be implemented by the plugin - unimplemented
+ * functions can be left to contain the NULL pointer.
+ * 
+ * Typically, functions from this interface come in pairs. Functins ending with
+ * @c _provided() inform Geany whether the plugin implements the given feature
+ * for the passed document. Functions ending with @c _perform() are called by
+ * Geany at appropriate moments to inform the plugin when to perform the given
+ * feature.
+ * 
+ * Instances of the @c PluginExtension structures are registered in Geany using
+ * the @c plugin_extension_register() function.

But it kind of is the extension - when you fill in the function pointers, the functions define the extension itself. And there could be multiple extensions per plugin so plugin == extension isn't completely right either.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/pull/3849/review/2136026031@github.com>