diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-01-22 02:02:27 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2004-01-22 02:02:27 +0000 |
commit | b1d8f234bfe083b5aa0b9e3ed675a36590aa5c0c (patch) | |
tree | 48ae1b81652e5fd275cddd1e1a0c5d85f98225a3 /source4/build/pidl/server.pm | |
parent | 55dfa23e4149b8daa9fe007fd1b7fac744bcdf12 (diff) | |
download | samba-b1d8f234bfe083b5aa0b9e3ed675a36590aa5c0c.tar.gz samba-b1d8f234bfe083b5aa0b9e3ed675a36590aa5c0c.tar.bz2 samba-b1d8f234bfe083b5aa0b9e3ed675a36590aa5c0c.zip |
sorry, the last commit went in by mistake:-(
- implement the interface_by_name() and interface_by_uuid() hooks
for the autogenerated dcerpc server boilerplates.
metze
(This used to be commit 0b6a291eb4b353259ad5b72f8731a5504d9dc8c7)
Diffstat (limited to 'source4/build/pidl/server.pm')
-rw-r--r-- | source4/build/pidl/server.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/build/pidl/server.pm b/source4/build/pidl/server.pm index 54ad6fdcd9..20a8c383ea 100644 --- a/source4/build/pidl/server.pm +++ b/source4/build/pidl/server.pm @@ -108,19 +108,19 @@ static NTSTATUS $name\_op_init_server(struct dcesrv_context *dce_ctx, const stru static BOOL $name\_op_interface_by_uuid(struct dcesrv_interface *iface, const char *uuid, uint32 if_version) { - if (strcmp($name\_interface.ndr->name, name)==0) { - memcpy(iface,&$name\_interface, sizeof(*iface); + if ($name\_interface.ndr->if_version == if_version && + strcmp($name\_interface.ndr->uuid, uuid)==0) { + memcpy(iface,&$name\_interface, sizeof(*iface)); return True; } - return False; + return False; } static BOOL $name\_op_interface_by_name(struct dcesrv_interface *iface, const char *name) { - if ($name\_interface.ndr->if_version == if_version && - strcmp($name\_interface.ndr->uuid, uuid)==0) { - memcpy(iface,&$name\_interface, sizeof(*iface); + if (strcmp($name\_interface.ndr->name, name)==0) { + memcpy(iface,&$name\_interface, sizeof(*iface)); return True; } |