Hi Alan,

Alan Maguire wrote:
> hi Darren
> 
> regarding the sysevent stuff, because it
> depends on a more complex fix that likely
> won't be available for awhile (allowing
> nonprivileged users access to event
> channels), I'm going to switch the event
> messaging to use standard System V message
> queues. I'm doing final testing and hope
> to push today, but once done the sysevent
> permissions problems should disappear.

Excellent.

> One change that's visible to you: I thought
> it might make things easier to follow the
> picea approach of having a "wait for next
> event" function, so instead of registering
> a callback, you can just call
> 
> nwam_error_t nwam_event_wait(nwam_event_t *);

I think that sounds great...

> 
> ...and then call nwam_event_free(nwam_event_t)
> when you're done with the event. Saves having
> to deal with cancelling threads etc. So no callback
> is passed into nwam_events_init(). I updated the
> library README, so it'll describe all this when
> I push the changes later, and nwamadm.c will
> show example usage of the event APIs via the
> "interact" subcommand. Sorry for the hassle,

That's very useful, thanks.

Darren.

Reply via email to