Comment 20 for bug 587597

Revision history for this message
Crise / MW (markuwil) wrote : Re: Plugins support

Short answer: not directly...

Long answer: It doesn't support them right now directly... because the listeners use so many C++ specific features it was easier just to expose select listeners through hooks also it allows more precise control over what info plugin has access to.

There is a way to add full support for this in theory but I am not sure how much work that would actually be as it would essentially mean turning or hook subscriber into an universal listener. Also when DC++ fires an event most of the time the a, b and c are something that can not be used by a plugin directly, because plugins do not know DC++ internal types. So it would also be necessary to be able to wrap any object members we want plugins to have access to into structs etc.

This is what is essentially done for the listeners exposed to plugins right now.

If we give up on the API being pure C then this comes notably easier but still not necessarily easy.