Re: [Licq-devel] newapi: PluginManager, Plugins and threads

2006-05-26 Thread Jon Keating
On Fri, May 26, 2006 at 04:48:46PM +0200, Erik Johansson wrote: > CPlugin::run() > { > while (doRun) > { > if (hasPendingEvents()) > processEvents(); > else > // sleep, wait for a condition or do nothing i.e. busy wait > } > } See below for comments on this. > What abou

Re: [Licq-devel] newapi: PluginManager, Plugins and threads

2006-05-26 Thread Erik Johansson
On Friday 26 May 2006 08:04, Jon Keating wrote: > Yes, this sounds better. Just one thing is that the run() function in > the plugins is not necessary for some plugins that will only use the > callbacks. An example is the auto-reply plugin. The only thing it will > do is run through the event loop.

Re: [Licq-devel] newapi: PluginManager, Plugins and threads

2006-05-25 Thread Jon Keating
On Fri, May 26, 2006 at 12:03:57AM +0200, Erik Johansson wrote: > # PluginManager > I've been looking at the licq_*plugin.h files, and it seems a bit awkward that > a plugin should have to be loaded before you can get the version, description > etc. I propose moving that information to to separate