GNOME Bugzilla – Bug 740943
core: Add register_keys plugin function
Last modified: 2015-01-27 17:34:14 UTC
.
Created attachment 291852 [details] [review] core: Add register_keys plugin function This allows for custom metadata keys to be registered before the plugins, or even the sources, are loaded.
This will require plugin changes as well, for which I have patches. I'll push those once this is decided.
Created attachment 291919 [details] [review] core: Add register_keys plugin function This allows for custom metadata keys to be registered before the plugins, or even the sources, are loaded.
We needed to make some changes to the plugin loading so that the plugin was "prepared" (with module existing, vfuncs populated, etc.) before first, registering the keys for all the plugins, *then* init'ing each of the plugins. This means that lua sources can use metadata keys from other plugins now.
Created attachment 291974 [details] [review] bookmarks: Use new register_keys vfunc
Created attachment 291975 [details] [review] gravatar: Use new register_keys vfunc
Created attachment 291976 [details] [review] thetvdb: Use new register_keys vfunc
Created attachment 291977 [details] [review] tmdb: Use new register_keys vfunc
Created attachment 291978 [details] [review] tracker: Use new register_keys vfunc
*** Bug 739499 has been marked as a duplicate of this bug. ***
Comment on attachment 291919 [details] [review] core: Add register_keys plugin function Attachment 291919 [details] pushed as a4fac2b - core: Add register_keys plugin function
Attachment 291974 [details] pushed as 5e50ee2 - bookmarks: Use new register_keys vfunc Attachment 291975 [details] pushed as 344d797 - gravatar: Use new register_keys vfunc Attachment 291976 [details] pushed as af89bc4 - thetvdb: Use new register_keys vfunc Attachment 291977 [details] pushed as 14ddadf - tmdb: Use new register_keys vfunc Attachment 291978 [details] pushed as c92fb6d - tracker: Use new register_keys vfunc