mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
librpc/ndr: add ndr_table_by_syntax()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
8e4a78655a
commit
d6c91502c0
@ -97,6 +97,20 @@ const struct ndr_interface_table *ndr_table_by_name(const char *name)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
find a dcerpc interface by syntax
|
||||
*/
|
||||
const struct ndr_interface_table *ndr_table_by_syntax(const struct ndr_syntax_id *syntax)
|
||||
{
|
||||
const struct ndr_interface_list *l;
|
||||
for (l=ndr_table_list();l;l=l->next) {
|
||||
if (ndr_syntax_id_equal(&l->table->syntax_id, syntax)) {
|
||||
return l->table;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
find a dcerpc interface by uuid
|
||||
*/
|
||||
|
@ -27,6 +27,7 @@ NTSTATUS ndr_table_register(const struct ndr_interface_table *table);
|
||||
const char *ndr_interface_name(const struct GUID *uuid, uint32_t if_version);
|
||||
int ndr_interface_num_calls(const struct GUID *uuid, uint32_t if_version);
|
||||
const struct ndr_interface_table *ndr_table_by_name(const char *name);
|
||||
const struct ndr_interface_table *ndr_table_by_syntax(const struct ndr_syntax_id *syntax);
|
||||
const struct ndr_interface_table *ndr_table_by_uuid(const struct GUID *uuid);
|
||||
const struct ndr_interface_list *ndr_table_list(void);
|
||||
NTSTATUS ndr_table_init(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user