mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Re-run make idl.
Guenther
This commit is contained in:
parent
6355a8ee97
commit
2add879019
@ -847,13 +847,13 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
const char *logon_server,
|
||||
const char *computername,
|
||||
struct netr_Authenticator credential,
|
||||
struct netr_Authenticator *credential,
|
||||
struct netr_Authenticator *return_authenticator,
|
||||
enum netr_SamDatabaseID database_id,
|
||||
uint16_t restart_state,
|
||||
uint32_t *sync_context,
|
||||
uint32_t preferredmaximumlength,
|
||||
struct netr_DELTA_ENUM_ARRAY *delta_enum_array)
|
||||
struct netr_DELTA_ENUM_ARRAY **delta_enum_array,
|
||||
uint32_t preferredmaximumlength)
|
||||
{
|
||||
struct netr_DatabaseSync2 r;
|
||||
NTSTATUS status;
|
||||
|
@ -142,13 +142,13 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
const char *logon_server,
|
||||
const char *computername,
|
||||
struct netr_Authenticator credential,
|
||||
struct netr_Authenticator *credential,
|
||||
struct netr_Authenticator *return_authenticator,
|
||||
enum netr_SamDatabaseID database_id,
|
||||
uint16_t restart_state,
|
||||
uint32_t *sync_context,
|
||||
uint32_t preferredmaximumlength,
|
||||
struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
|
||||
struct netr_DELTA_ENUM_ARRAY **delta_enum_array,
|
||||
uint32_t preferredmaximumlength);
|
||||
NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
const char *logon_server,
|
||||
|
@ -10516,7 +10516,10 @@ static enum ndr_err_code ndr_push_netr_DatabaseSync2(struct ndr_push *ndr, int f
|
||||
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
|
||||
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.computername, CH_UTF16)));
|
||||
NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.computername, ndr_charset_length(r->in.computername, CH_UTF16), sizeof(uint16_t), CH_UTF16));
|
||||
NDR_CHECK(ndr_push_netr_Authenticator(ndr, NDR_SCALARS, &r->in.credential));
|
||||
if (r->in.credential == NULL) {
|
||||
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
|
||||
}
|
||||
NDR_CHECK(ndr_push_netr_Authenticator(ndr, NDR_SCALARS, r->in.credential));
|
||||
if (r->in.return_authenticator == NULL) {
|
||||
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
|
||||
}
|
||||
@ -10541,7 +10544,10 @@ static enum ndr_err_code ndr_push_netr_DatabaseSync2(struct ndr_push *ndr, int f
|
||||
if (r->out.delta_enum_array == NULL) {
|
||||
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
|
||||
}
|
||||
NDR_CHECK(ndr_push_netr_DELTA_ENUM_ARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.delta_enum_array));
|
||||
NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.delta_enum_array));
|
||||
if (*r->out.delta_enum_array) {
|
||||
NDR_CHECK(ndr_push_netr_DELTA_ENUM_ARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.delta_enum_array));
|
||||
}
|
||||
NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
|
||||
}
|
||||
return NDR_ERR_SUCCESS;
|
||||
@ -10549,9 +10555,12 @@ static enum ndr_err_code ndr_push_netr_DatabaseSync2(struct ndr_push *ndr, int f
|
||||
|
||||
static enum ndr_err_code ndr_pull_netr_DatabaseSync2(struct ndr_pull *ndr, int flags, struct netr_DatabaseSync2 *r)
|
||||
{
|
||||
uint32_t _ptr_delta_enum_array;
|
||||
TALLOC_CTX *_mem_save_credential_0;
|
||||
TALLOC_CTX *_mem_save_return_authenticator_0;
|
||||
TALLOC_CTX *_mem_save_sync_context_0;
|
||||
TALLOC_CTX *_mem_save_delta_enum_array_0;
|
||||
TALLOC_CTX *_mem_save_delta_enum_array_1;
|
||||
if (flags & NDR_IN) {
|
||||
ZERO_STRUCT(r->out);
|
||||
|
||||
@ -10569,7 +10578,13 @@ static enum ndr_err_code ndr_pull_netr_DatabaseSync2(struct ndr_pull *ndr, int f
|
||||
}
|
||||
NDR_CHECK(ndr_check_string_terminator(ndr, ndr_get_array_length(ndr, &r->in.computername), sizeof(uint16_t)));
|
||||
NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.computername, ndr_get_array_length(ndr, &r->in.computername), sizeof(uint16_t), CH_UTF16));
|
||||
NDR_CHECK(ndr_pull_netr_Authenticator(ndr, NDR_SCALARS, &r->in.credential));
|
||||
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
|
||||
NDR_PULL_ALLOC(ndr, r->in.credential);
|
||||
}
|
||||
_mem_save_credential_0 = NDR_PULL_GET_MEM_CTX(ndr);
|
||||
NDR_PULL_SET_MEM_CTX(ndr, r->in.credential, LIBNDR_FLAG_REF_ALLOC);
|
||||
NDR_CHECK(ndr_pull_netr_Authenticator(ndr, NDR_SCALARS, r->in.credential));
|
||||
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_credential_0, LIBNDR_FLAG_REF_ALLOC);
|
||||
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
|
||||
NDR_PULL_ALLOC(ndr, r->in.return_authenticator);
|
||||
}
|
||||
@ -10614,7 +10629,18 @@ static enum ndr_err_code ndr_pull_netr_DatabaseSync2(struct ndr_pull *ndr, int f
|
||||
}
|
||||
_mem_save_delta_enum_array_0 = NDR_PULL_GET_MEM_CTX(ndr);
|
||||
NDR_PULL_SET_MEM_CTX(ndr, r->out.delta_enum_array, LIBNDR_FLAG_REF_ALLOC);
|
||||
NDR_CHECK(ndr_pull_netr_DELTA_ENUM_ARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.delta_enum_array));
|
||||
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_delta_enum_array));
|
||||
if (_ptr_delta_enum_array) {
|
||||
NDR_PULL_ALLOC(ndr, *r->out.delta_enum_array);
|
||||
} else {
|
||||
*r->out.delta_enum_array = NULL;
|
||||
}
|
||||
if (*r->out.delta_enum_array) {
|
||||
_mem_save_delta_enum_array_1 = NDR_PULL_GET_MEM_CTX(ndr);
|
||||
NDR_PULL_SET_MEM_CTX(ndr, *r->out.delta_enum_array, 0);
|
||||
NDR_CHECK(ndr_pull_netr_DELTA_ENUM_ARRAY(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.delta_enum_array));
|
||||
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_delta_enum_array_1, 0);
|
||||
}
|
||||
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_delta_enum_array_0, LIBNDR_FLAG_REF_ALLOC);
|
||||
NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
|
||||
}
|
||||
@ -10633,7 +10659,10 @@ _PUBLIC_ void ndr_print_netr_DatabaseSync2(struct ndr_print *ndr, const char *na
|
||||
ndr->depth++;
|
||||
ndr_print_string(ndr, "logon_server", r->in.logon_server);
|
||||
ndr_print_string(ndr, "computername", r->in.computername);
|
||||
ndr_print_netr_Authenticator(ndr, "credential", &r->in.credential);
|
||||
ndr_print_ptr(ndr, "credential", r->in.credential);
|
||||
ndr->depth++;
|
||||
ndr_print_netr_Authenticator(ndr, "credential", r->in.credential);
|
||||
ndr->depth--;
|
||||
ndr_print_ptr(ndr, "return_authenticator", r->in.return_authenticator);
|
||||
ndr->depth++;
|
||||
ndr_print_netr_Authenticator(ndr, "return_authenticator", r->in.return_authenticator);
|
||||
@ -10660,7 +10689,12 @@ _PUBLIC_ void ndr_print_netr_DatabaseSync2(struct ndr_print *ndr, const char *na
|
||||
ndr->depth--;
|
||||
ndr_print_ptr(ndr, "delta_enum_array", r->out.delta_enum_array);
|
||||
ndr->depth++;
|
||||
ndr_print_netr_DELTA_ENUM_ARRAY(ndr, "delta_enum_array", r->out.delta_enum_array);
|
||||
ndr_print_ptr(ndr, "delta_enum_array", *r->out.delta_enum_array);
|
||||
ndr->depth++;
|
||||
if (*r->out.delta_enum_array) {
|
||||
ndr_print_netr_DELTA_ENUM_ARRAY(ndr, "delta_enum_array", *r->out.delta_enum_array);
|
||||
}
|
||||
ndr->depth--;
|
||||
ndr->depth--;
|
||||
ndr_print_NTSTATUS(ndr, "result", r->out.result);
|
||||
ndr->depth--;
|
||||
|
@ -1105,7 +1105,7 @@ struct netr_DatabaseSync2 {
|
||||
struct {
|
||||
const char *logon_server;/* [charset(UTF16)] */
|
||||
const char *computername;/* [charset(UTF16)] */
|
||||
struct netr_Authenticator credential;
|
||||
struct netr_Authenticator *credential;/* [ref] */
|
||||
enum netr_SamDatabaseID database_id;
|
||||
uint16_t restart_state;
|
||||
uint32_t preferredmaximumlength;
|
||||
@ -1114,7 +1114,7 @@ struct netr_DatabaseSync2 {
|
||||
} in;
|
||||
|
||||
struct {
|
||||
struct netr_DELTA_ENUM_ARRAY *delta_enum_array;/* [ref] */
|
||||
struct netr_DELTA_ENUM_ARRAY **delta_enum_array;/* [ref] */
|
||||
struct netr_Authenticator *return_authenticator;/* [ref] */
|
||||
uint32_t *sync_context;/* [ref] */
|
||||
NTSTATUS result;
|
||||
|
@ -1358,7 +1358,7 @@ static bool api_netr_DatabaseSync2(pipes_struct *p)
|
||||
ZERO_STRUCT(r->out);
|
||||
r->out.return_authenticator = r->in.return_authenticator;
|
||||
r->out.sync_context = r->in.sync_context;
|
||||
r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY);
|
||||
r->out.delta_enum_array = talloc_zero(r, struct netr_DELTA_ENUM_ARRAY *);
|
||||
if (r->out.delta_enum_array == NULL) {
|
||||
talloc_free(r);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user