Calling plugins from other plugins

Suggestions and discussion of future versions
Post Reply
laharah
Member
Member
Posts: 26
Joined: Wed Jan 08, 2014 2:41 am

Calling plugins from other plugins

Post by laharah »

I'm writing a plugin and was wondering if there was a preferred way to access and make calls to another plugin from within my plugin core. I'm interested in integrating support for labelplus and others in my plugin and I'm not sure the best way to go about it. I'm not sure if calling the deluge.ui.client will work if I make the call within the core of my plugin running on a daemon (haven't had a chance to do much experimenting).

I assume that the plugins are handled with some sort of singleton pattern, is there some sort of deluge.plugin.get call I should use to access another plugin? I've tried searching the source code of other plugins but couldn't find an example of what I'm looking for.

On a related note, I have an "auto-run" module that has to make calls to my plugin core. I'd rather keep it separate for readability, so knowing the best way to call my already running plugin would be awesome.

-laharah
Post Reply