svn commit: samba r55 - branches/SAMBA_4_0/source/build/pidl
metze at samba.org
metze at samba.org
Mon Apr 5 16:06:33 GMT 2004
Author: metze
Date: 2004-04-05 16:06:33 +0000 (Mon, 05 Apr 2004)
New Revision: 55
Modified:
branches/SAMBA_4_0/source/build/pidl/server.pm
Log:
if you try to use a custom bind or unbind hook in
a dcesrv module and also use the autogenerated boilerplate
you can just use:
#define DCESRV_INTERFACE_<UPPERCASE_INTERFACE_NAME>_BIND <interface_name>_bind
#define DCESRV_INTERFACE_<UPPERCASE_INTERFACE_NAME>_UNBIND <interface_name>_unbind
the prototype for the functions are the same as in
struct dcesrv_interface {
...
/* this function is called when the client binds to this interface */
NTSTATUS (*bind)(struct dcesrv_call_state *, const struct dcesrv_interface *);
/* this function is called when the client disconnects the endpoint */
void (*unbind)(struct dcesrv_connection *, const struct dcesrv_interface *);
...
};
e.g.
#define DCESRV_INTERFACE_WINREG_BIND winreg_bind
#define DCESRV_INTERFACE_WINREG_UNBIND winreg_unbind
metze
More information about the samba-cvs
mailing list