@b4n commented on this pull request.


> +
+/**
+ * Registers the provided extension in Geany. There can be multiple extensions
+ * registered in Geany - these are stored in a list sorted by the priporty
+ * parameter. When executing @c _perform() functions, Geany goes through
+ * the list and executes the @c _perform() function of the first extension in
+ * the list whose @c _provided() function returns @c TRUE.
+ * 
+ * This function is typically called in the plugin @c init() function.
+ * 
+ * Plugins wishing to re-register themselves, e.g. with a different priority,
+ * should first unregister themselves using @c plugin_extension_unregister()
+ * and call @c plugin_extension_register() afterwards.
+ * 
+ * @param extension The @c PluginExtension structure instance provided by the
+ * plugin.

"A pointer to the \@c `PluginExtension` structure to register. This pointer and 
the \@c `PluginExtension` it points to have to remain valid until the extension 
is unregistered.  All fields of the \@c `PluginExtension` structure have to be 
fully initialized either to a @c `NULL` pointer or to a proper implementation. 
Usually, this structure is statically allocated which automatically 
zero-initializes uninitialized members as appropriate."

Or specify this some place else (maybe I missed it?)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3849#discussion_r1650918240
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3849/review/[email protected]>

Reply via email to