diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-26 00:59:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:59:17 -0500 |
commit | 42da534d66c14c60844568246a2862da7b49f1d5 (patch) | |
tree | 4c8156ae3cb44be0483bce10b5f60bad1bd286c7 /source4/librpc/rpc/table.c | |
parent | 7780e2bfa1e446d02a0168e85bf7713fd4ce475b (diff) | |
download | samba-42da534d66c14c60844568246a2862da7b49f1d5.tar.gz samba-42da534d66c14c60844568246a2862da7b49f1d5.tar.bz2 samba-42da534d66c14c60844568246a2862da7b49f1d5.zip |
r14735: Use dcerpc_syntax_id rather then seperate GUID + if_version everywhere
(This used to be commit a316b33057f3ec8532677980e093cd327d33f257)
Diffstat (limited to 'source4/librpc/rpc/table.c')
-rw-r--r-- | source4/librpc/rpc/table.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/librpc/rpc/table.c b/source4/librpc/rpc/table.c index 9492b2b925..fa8fc74c9b 100644 --- a/source4/librpc/rpc/table.c +++ b/source4/librpc/rpc/table.c @@ -36,7 +36,7 @@ NTSTATUS librpc_register_interface(const struct dcerpc_interface_table *interfac struct dcerpc_interface_list *l; for (l = dcerpc_pipes; l; l = l->next) { - if (GUID_equal(&interface->uuid, &l->table->uuid)) { + if (GUID_equal(&interface->syntax_id.uuid, &l->table->syntax_id.uuid)) { DEBUG(0, ("Attempt to register interface %s which has the " "same UUID as already registered interface %s\n", interface->name, l->table->name)); @@ -59,8 +59,8 @@ const char *idl_pipe_name(const struct GUID *uuid, uint32_t if_version) { const struct dcerpc_interface_list *l; for (l=librpc_dcerpc_pipes();l;l=l->next) { - if (GUID_equal(&l->table->uuid, uuid) && - l->table->if_version == if_version) { + if (GUID_equal(&l->table->syntax_id.uuid, uuid) && + l->table->syntax_id.if_version == if_version) { return l->table->name; } } @@ -74,8 +74,8 @@ int idl_num_calls(const struct GUID *uuid, uint32_t if_version) { const struct dcerpc_interface_list *l; for (l=librpc_dcerpc_pipes();l;l=l->next){ - if (GUID_equal(&l->table->uuid, uuid) && - l->table->if_version == if_version) { + if (GUID_equal(&l->table->syntax_id.uuid, uuid) && + l->table->syntax_id.if_version == if_version) { return l->table->num_calls; } } @@ -104,7 +104,7 @@ const struct dcerpc_interface_table *idl_iface_by_uuid(const struct GUID *uuid) { const struct dcerpc_interface_list *l; for (l=librpc_dcerpc_pipes();l;l=l->next) { - if (GUID_equal(&l->table->uuid, uuid)) { + if (GUID_equal(&l->table->syntax_id.uuid, uuid)) { return l->table; } } |