[PATCH] add smb_register_*_event()

Jelmer Vernooij jelmer at samba.org
Mon Apr 28 01:53:49 GMT 2003


On Sat, Apr 26, 2003 at 03:32:06PM +0200, Stefan (metze) Metzmacher wrote about 'Re: [PATCH] add smb_register_*_event()':
> At 21:31 24.04.2003 +0200, Stefan (metze) Metzmacher wrote:
> >Hi Jelmer,

> >here's a patch for the smb_register_idle_event() and
> >smb_register_exit_event() functions.

> >They are suppost to give modules a chance to run function periodicly
> >or on server exit.

> Here are new patches witch introduce the smb_run_*events() to the smbd 
> code...
Please don't add version numbers to functions or then the 'normal'
register functions. We can't add a seperate function version number
for all the functions in samba.

Also, wouldn't it be better to have 'general' support for event lists?
E.g. the module just calls :

smb_register_event_handler(event_exit, my_exit_event_handler);

That way we can have more events without the need to duplicate code.

Jelmer

-- 
Jelmer Vernooij                                      <jelmer at samba.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030428/c757ffd9/attachment.bin


More information about the samba-technical mailing list