@techee commented on this pull request.
- const PluginExtensionEntry *entry_b = b;
+ + return entry_b->priority - entry_a->priority; +} + + +GEANY_API_SYMBOL +void plugin_extension_register(PluginExtension *extension, const gchar *plugin_name, + gint priority, gpointer data) +{ + PluginExtensionEntry *entry = g_malloc(sizeof *entry); + + entry->extension = extension; + entry->data = data; + entry->priority = priority; + entry->plugin_name = g_strdup(plugin_name ? plugin_name : "unnamed plugin");
Well, I thought it was for the user interface (we don't have). But maybe for now I could even remove it from `PluginExtensionEntry` completely as it is unused and we can decide later what we want to do with the parameter. What do you think?