1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r24540: rename struct dcerpc_endpoint_list/struct dcerpc_authservice_list

into ndr_interface_string_array and move it to libndr.h

metze
(This used to be commit 473bca74dc)
This commit is contained in:
Stefan Metzmacher 2007-08-18 12:25:37 +00:00 committed by Gerald (Jerry) Carter
parent 698e7c5f2a
commit 6b62f15ce7
3 changed files with 9 additions and 14 deletions

View File

@ -299,6 +299,11 @@ struct ndr_interface_call {
BOOL async;
};
struct ndr_interface_string_array {
uint32_t count;
const char * const *names;
};
/* FIXME: Use represent_as instead */
struct dom_sid;
NTSTATUS ndr_push_dom_sid2(struct ndr_push *ndr, int ndr_flags, const struct dom_sid *sid);

View File

@ -158,24 +158,14 @@ struct dcerpc_pipe {
/* this triggers the DCERPC_PFC_FLAG_CONC_MPX flag in the bind request */
#define DCERPC_CONCURRENT_MULTIPLEX (1<<19)
struct dcerpc_endpoint_list {
uint32_t count;
const char * const *names;
};
struct dcerpc_authservice_list {
uint32_t count;
const char * const *names;
};
struct dcerpc_interface_table {
const char *name;
struct ndr_syntax_id syntax_id;
const char *helpstring;
uint32_t num_calls;
const struct ndr_interface_call *calls;
const struct dcerpc_endpoint_list *endpoints;
const struct dcerpc_authservice_list *authservices;
const struct ndr_interface_string_array *endpoints;
const struct ndr_interface_string_array *authservices;
};
struct dcerpc_interface_list {

View File

@ -2307,7 +2307,7 @@ sub FunctionTable($$)
$self->pidl("};");
$self->pidl("");
$self->pidl("static const struct dcerpc_endpoint_list $interface->{NAME}\_endpoints = {");
$self->pidl("static const struct ndr_interface_string_array $interface->{NAME}\_endpoints = {");
$self->pidl("\t.count\t= $endpoint_count,");
$self->pidl("\t.names\t= $interface->{NAME}\_endpoint_strings");
$self->pidl("};");
@ -2327,7 +2327,7 @@ sub FunctionTable($$)
$self->pidl("};");
$self->pidl("");
$self->pidl("static const struct dcerpc_authservice_list $interface->{NAME}\_authservices = {");
$self->pidl("static const struct ndr_interface_string_array $interface->{NAME}\_authservices = {");
$self->pidl("\t.count\t= $endpoint_count,");
$self->pidl("\t.names\t= $interface->{NAME}\_authservice_strings");
$self->pidl("};");