GNOME Bugzilla – Bug 667557
Simplify plugin creation
Last modified: 2014-02-21 15:26:19 UTC
Plugin creation should be easier to create, using a more imperative style, and remove the requirements for the plugin to implement its own threading. For example, for bug 656001, one could implement: grilo_class->get_list = bbc_get_list; static GList * bbc_get_list () { content = http_grab (URL); /* do stuff with content */ return list; } This could be further eased with macro to handle the GLib/Grilo boilerplate.
See g_simple_async_result_run_in_thread() for how to hide most of the gritty stuff.
The lua source (bug 711243) would pretty much take care of this. *** This bug has been marked as a duplicate of bug 711243 ***