@b4n commented on this pull request.
- g_return_if_fail(ext_name != NULL);
+ + entry = g_malloc(sizeof *entry); + entry->extension = extension; + entry->data = data; + entry->priority = priority; + + all_extensions = g_list_insert_sorted(all_extensions, entry, sort_extension_entries); +} + + +/** + * Plugins are responsible for calling this function when they no longer + * provide the extension, at the latest in the plugin @c cleanup() function. + * + * @param extension The @c PluginExtension structure that is being unregistered.
Currently, it has to be the same pointer that was registered, and if it's not one of the registered pointers it's not removing anything.
```suggestion * @param extension The @c PluginExtension structure pointer to unregister, as previously registered with @c plugin_extension_register() ```