mirror of
https://github.com/samba-team/samba.git
synced 2025-01-17 02:05:21 +03:00
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 commit is contained in:
parent
61ec710518
commit
0b6a291eb4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user