On Sun, Jul 27, 2008 at 05:01:48PM +0200, Lennart Poettering wrote: > On Wed, 23.07.08 16:27, Stanley Cai (stanley.w.cai at gmail.com) wrote: > > The subscription logic is for asynchronous notification. It's purely > informational, you may not use it to interfere with the normal state > logic of the core. the remove/unlink event has no enough information. :) I think the new event is very close to HOOK_XXX_POST functions. > > I think you are looking for the hooks defined in pa_core->hooks[]. > They allow you to install hook functions at several places that can be > used to modify the normal behaviour of the core. > > See modules/module-rescue-streams.c for an example how to use that. This is exactly what I need. I have changed the code to use hook callbacks. Thanks. Best regards, -stanley