Feature #57

Allow frontends to call plugin methods

Added by Alguno over 6 years ago. Updated over 5 years ago.

Status:Closed Start:09/15/2010
Priority:Normal Due date:
Assigned to:Alguno % Done:

100%

Category:NNTPGrab Core
Target version:0.8.0
Votes: 0

Description

At the moment plugins can only connect to events emit by the NNTPGrab Core and respond to those with a custom action.
The next step is to allow frontends to call methods exported by plugins.
This is required to implement plugins like a scheduled search and import plugin (as the user needs to be able to specify which search queries need to be perfomed).

For this to work a list containing all available methods exported by plugins need to be propagated to frontends which includes signatures for all the methods.
Also something is needed to marshal method data. This marshaling also needs to work when using a environment running the NNTPGrab Server.
Perhaps some inspiration can be found in the DBUS documentation as it provides something similar

Associated revisions

Revision 1911
Added by Alguno over 5 years ago

- Frontends can now call methods which are provided by plugins. Closes #57
- All plugins now need to provide an implementation for the nntpgrab_plugin_call_plugin_method
function to catch all external method calls
- Moved all glib wrapper declarations to a separate .h file

Also available in: Atom PDF