On Tuesday 20 February 2007 19:13, Anders Olofsson wrote:
> If think it would be more practical to separate protocol handling from the
> plugin handling.

Since this was the core of the last meeting, I'll refrain from commenting 
here. Read the log :)

> I think owners should be managed in the daemon but it will only need the
> protocol name and owner id form the owner configuration. The rest
> (xml-block holding any amount of parameters) is passed on to the protocol
> implementation instance on creation.

I think the daemon should load all data from disk and create a TOwner 
instance. A pointer to this instance is then handed to the protocol plugin 
for it do whatever it likes with it. TOwner would have any number of 
key/value pairs should this should not be a problem for the plugin. And it 
can easily be saved to and loaded from disk by the daemon. In any format.

> The daemon will handle multiple owners of the same protocol in the same
> way as if they used different protocols. The daemon (and other plugins)
> talk with the instances, not the plugins they belong to.
> Each instances run separatly and should not need to share event handling,
> threads or any other resource unless it is in some way required by the
> actual protocol.

Yes, this is the idea.

[snip much of what we talked about on the meeting]

// Erik

-- 
This signature intentionally says nothing.

Erik Johansson
http://ejohansson.se

Attachment: pgpNNDj6z3iAj.pgp
Description: PGP signature

Reply via email to