Merge tag 'upstream/4.0.5+dfsg1' into samba_4.0_ivo
[abartlet/samba-debian.git] / source3 / autoconf / librpc / gen_ndr / ndr_frsapi.c
similarity index 97%
rename from source3/librpc/gen_ndr/ndr_frsapi.c
rename to source3/autoconf/librpc/gen_ndr/ndr_frsapi.c
index 31c91780f3a286817c546eaa30f04960434aa4f0..1b8689940b8d1b75b5160d43eaa6e52353673afe 100644 (file)
@@ -1,7 +1,7 @@
 /* parser auto-generated by pidl */
 
 #include "includes.h"
-#include "librpc/gen_ndr/ndr_frsapi.h"
+#include "autoconf/librpc/gen_ndr/ndr_frsapi.h"
 
 #include "librpc/gen_ndr/ndr_misc.h"
 static enum ndr_err_code ndr_push_frsapi_InfoEnum(struct ndr_push *ndr, int ndr_flags, enum frsapi_InfoEnum r)
@@ -39,6 +39,7 @@ _PUBLIC_ void ndr_print_frsapi_InfoEnum(struct ndr_print *ndr, const char *name,
 
 static enum ndr_err_code ndr_push_frsapi_Info(struct ndr_push *ndr, int ndr_flags, const struct frsapi_Info *r)
 {
+       NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
        if (ndr_flags & NDR_SCALARS) {
                NDR_CHECK(ndr_push_align(ndr, 4));
                NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->length));
@@ -70,6 +71,7 @@ static enum ndr_err_code ndr_push_frsapi_Info(struct ndr_push *ndr, int ndr_flag
 
 static enum ndr_err_code ndr_pull_frsapi_Info(struct ndr_pull *ndr, int ndr_flags, struct frsapi_Info *r)
 {
+       NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
        if (ndr_flags & NDR_SCALARS) {
                NDR_CHECK(ndr_pull_align(ndr, 4));
                NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->length));
@@ -170,6 +172,7 @@ _PUBLIC_ void ndr_print_frsapi_WriterCommandsValues(struct ndr_print *ndr, const
 
 static enum ndr_err_code ndr_push_FRSAPI_VERIFY_PROMOTION(struct ndr_push *ndr, int flags, const struct FRSAPI_VERIFY_PROMOTION *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -179,6 +182,7 @@ static enum ndr_err_code ndr_push_FRSAPI_VERIFY_PROMOTION(struct ndr_push *ndr,
 
 static enum ndr_err_code ndr_pull_FRSAPI_VERIFY_PROMOTION(struct ndr_pull *ndr, int flags, struct FRSAPI_VERIFY_PROMOTION *r)
 {
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -209,6 +213,7 @@ _PUBLIC_ void ndr_print_FRSAPI_VERIFY_PROMOTION(struct ndr_print *ndr, const cha
 
 static enum ndr_err_code ndr_push_FRSAPI_PROMOTION_STATUS(struct ndr_push *ndr, int flags, const struct FRSAPI_PROMOTION_STATUS *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -218,6 +223,7 @@ static enum ndr_err_code ndr_push_FRSAPI_PROMOTION_STATUS(struct ndr_push *ndr,
 
 static enum ndr_err_code ndr_pull_FRSAPI_PROMOTION_STATUS(struct ndr_pull *ndr, int flags, struct FRSAPI_PROMOTION_STATUS *r)
 {
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -248,6 +254,7 @@ _PUBLIC_ void ndr_print_FRSAPI_PROMOTION_STATUS(struct ndr_print *ndr, const cha
 
 static enum ndr_err_code ndr_push_FRSAPI_START_DEMOTION(struct ndr_push *ndr, int flags, const struct FRSAPI_START_DEMOTION *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -257,6 +264,7 @@ static enum ndr_err_code ndr_push_FRSAPI_START_DEMOTION(struct ndr_push *ndr, in
 
 static enum ndr_err_code ndr_pull_FRSAPI_START_DEMOTION(struct ndr_pull *ndr, int flags, struct FRSAPI_START_DEMOTION *r)
 {
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -287,6 +295,7 @@ _PUBLIC_ void ndr_print_FRSAPI_START_DEMOTION(struct ndr_print *ndr, const char
 
 static enum ndr_err_code ndr_push_FRSAPI_COMMIT_DEMOTION(struct ndr_push *ndr, int flags, const struct FRSAPI_COMMIT_DEMOTION *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -296,6 +305,7 @@ static enum ndr_err_code ndr_push_FRSAPI_COMMIT_DEMOTION(struct ndr_push *ndr, i
 
 static enum ndr_err_code ndr_pull_FRSAPI_COMMIT_DEMOTION(struct ndr_pull *ndr, int flags, struct FRSAPI_COMMIT_DEMOTION *r)
 {
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -326,6 +336,7 @@ _PUBLIC_ void ndr_print_FRSAPI_COMMIT_DEMOTION(struct ndr_print *ndr, const char
 
 static enum ndr_err_code ndr_push_frsapi_SetDsPollingIntervalW(struct ndr_push *ndr, int flags, const struct frsapi_SetDsPollingIntervalW *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.CurrentInterval));
                NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.DsPollingLongInterval));
@@ -339,6 +350,7 @@ static enum ndr_err_code ndr_push_frsapi_SetDsPollingIntervalW(struct ndr_push *
 
 static enum ndr_err_code ndr_pull_frsapi_SetDsPollingIntervalW(struct ndr_pull *ndr, int flags, struct frsapi_SetDsPollingIntervalW *r)
 {
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.CurrentInterval));
                NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.DsPollingLongInterval));
@@ -377,6 +389,7 @@ _PUBLIC_ void ndr_print_frsapi_SetDsPollingIntervalW(struct ndr_print *ndr, cons
 
 static enum ndr_err_code ndr_push_frsapi_GetDsPollingIntervalW(struct ndr_push *ndr, int flags, const struct frsapi_GetDsPollingIntervalW *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -402,6 +415,7 @@ static enum ndr_err_code ndr_pull_frsapi_GetDsPollingIntervalW(struct ndr_pull *
        TALLOC_CTX *_mem_save_CurrentInterval_0;
        TALLOC_CTX *_mem_save_DsPollingLongInterval_0;
        TALLOC_CTX *_mem_save_DsPollingShortInterval_0;
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                ZERO_STRUCT(r->out);
 
@@ -475,6 +489,7 @@ _PUBLIC_ void ndr_print_frsapi_GetDsPollingIntervalW(struct ndr_print *ndr, cons
 
 static enum ndr_err_code ndr_push_FRSAPI_VERIFY_PROMOTION_W(struct ndr_push *ndr, int flags, const struct FRSAPI_VERIFY_PROMOTION_W *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -484,6 +499,7 @@ static enum ndr_err_code ndr_push_FRSAPI_VERIFY_PROMOTION_W(struct ndr_push *ndr
 
 static enum ndr_err_code ndr_pull_FRSAPI_VERIFY_PROMOTION_W(struct ndr_pull *ndr, int flags, struct FRSAPI_VERIFY_PROMOTION_W *r)
 {
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
        }
        if (flags & NDR_OUT) {
@@ -514,6 +530,7 @@ _PUBLIC_ void ndr_print_FRSAPI_VERIFY_PROMOTION_W(struct ndr_print *ndr, const c
 
 static enum ndr_err_code ndr_push_frsapi_InfoW(struct ndr_push *ndr, int flags, const struct frsapi_InfoW *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.length));
                NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.info));
@@ -535,6 +552,7 @@ static enum ndr_err_code ndr_pull_frsapi_InfoW(struct ndr_pull *ndr, int flags,
 {
        uint32_t _ptr_info;
        TALLOC_CTX *_mem_save_info_0;
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                ZERO_STRUCT(r->out);
 
@@ -610,6 +628,7 @@ _PUBLIC_ void ndr_print_frsapi_InfoW(struct ndr_print *ndr, const char *name, in
 
 static enum ndr_err_code ndr_push_frsapi_IsPathReplicated(struct ndr_push *ndr, int flags, const struct frsapi_IsPathReplicated *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.path));
                if (r->in.path) {
@@ -652,6 +671,7 @@ static enum ndr_err_code ndr_pull_frsapi_IsPathReplicated(struct ndr_pull *ndr,
        TALLOC_CTX *_mem_save_primary_0;
        TALLOC_CTX *_mem_save_root_0;
        TALLOC_CTX *_mem_save_replica_set_guid_0;
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                ZERO_STRUCT(r->out);
 
@@ -766,6 +786,7 @@ _PUBLIC_ void ndr_print_frsapi_IsPathReplicated(struct ndr_print *ndr, const cha
 
 static enum ndr_err_code ndr_push_frsapi_WriterCommand(struct ndr_push *ndr, int flags, const struct frsapi_WriterCommand *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_push_frsapi_WriterCommandsValues(ndr, NDR_SCALARS, r->in.command));
        }
@@ -777,6 +798,7 @@ static enum ndr_err_code ndr_push_frsapi_WriterCommand(struct ndr_push *ndr, int
 
 static enum ndr_err_code ndr_pull_frsapi_WriterCommand(struct ndr_pull *ndr, int flags, struct frsapi_WriterCommand *r)
 {
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_pull_frsapi_WriterCommandsValues(ndr, NDR_SCALARS, &r->in.command));
        }
@@ -811,6 +833,7 @@ _PUBLIC_ void ndr_print_frsapi_WriterCommand(struct ndr_print *ndr, const char *
 
 static enum ndr_err_code ndr_push_frsapi_ForceReplication(struct ndr_push *ndr, int flags, const struct frsapi_ForceReplication *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.replica_set_guid));
                if (r->in.replica_set_guid) {
@@ -855,6 +878,7 @@ static enum ndr_err_code ndr_pull_frsapi_ForceReplication(struct ndr_pull *ndr,
        TALLOC_CTX *_mem_save_connection_guid_0;
        TALLOC_CTX *_mem_save_replica_set_name_0;
        TALLOC_CTX *_mem_save_partner_dns_name_0;
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_replica_set_guid));
                if (_ptr_replica_set_guid) {