Merge tag 'upstream/4.0.5+dfsg1' into samba_4.0_ivo
[abartlet/samba-debian.git] / source3 / autoconf / librpc / gen_ndr / ndr_unixinfo.c
similarity index 97%
rename from source3/librpc/gen_ndr/ndr_unixinfo.c
rename to source3/autoconf/librpc/gen_ndr/ndr_unixinfo.c
index 88e86c981cc275130ef004ba6e54b908e2519cd3..a18421e8c8d84bd1fddb6a9cde10c4423eb7112e 100644 (file)
@@ -1,11 +1,12 @@
 /* parser auto-generated by pidl */
 
 #include "includes.h"
-#include "librpc/gen_ndr/ndr_unixinfo.h"
+#include "autoconf/librpc/gen_ndr/ndr_unixinfo.h"
 
 #include "librpc/gen_ndr/ndr_security.h"
 static enum ndr_err_code ndr_push_unixinfo_GetPWUidInfo(struct ndr_push *ndr, int ndr_flags, const struct unixinfo_GetPWUidInfo *r)
 {
+       NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
        if (ndr_flags & NDR_SCALARS) {
                NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->shell, CH_UTF8)));
                NDR_CHECK(ndr_push_align(ndr, 4));
@@ -30,6 +31,7 @@ static enum ndr_err_code ndr_pull_unixinfo_GetPWUidInfo(struct ndr_pull *ndr, in
        uint32_t length_homedir_0 = 0;
        uint32_t size_shell_0 = 0;
        uint32_t length_shell_0 = 0;
+       NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
        if (ndr_flags & NDR_SCALARS) {
                NDR_CHECK(ndr_pull_array_size(ndr, &r->shell));
                NDR_CHECK(ndr_pull_align(ndr, 4));
@@ -71,6 +73,7 @@ _PUBLIC_ void ndr_print_unixinfo_GetPWUidInfo(struct ndr_print *ndr, const char
 
 static enum ndr_err_code ndr_push_unixinfo_SidToUid(struct ndr_push *ndr, int flags, const struct unixinfo_SidToUid *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, &r->in.sid));
        }
@@ -87,6 +90,7 @@ static enum ndr_err_code ndr_push_unixinfo_SidToUid(struct ndr_push *ndr, int fl
 static enum ndr_err_code ndr_pull_unixinfo_SidToUid(struct ndr_pull *ndr, int flags, struct unixinfo_SidToUid *r)
 {
        TALLOC_CTX *_mem_save_uid_0;
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                ZERO_STRUCT(r->out);
 
@@ -136,6 +140,7 @@ _PUBLIC_ void ndr_print_unixinfo_SidToUid(struct ndr_print *ndr, const char *nam
 
 static enum ndr_err_code ndr_push_unixinfo_UidToSid(struct ndr_push *ndr, int flags, const struct unixinfo_UidToSid *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.uid));
        }
@@ -152,6 +157,7 @@ static enum ndr_err_code ndr_push_unixinfo_UidToSid(struct ndr_push *ndr, int fl
 static enum ndr_err_code ndr_pull_unixinfo_UidToSid(struct ndr_pull *ndr, int flags, struct unixinfo_UidToSid *r)
 {
        TALLOC_CTX *_mem_save_sid_0;
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                ZERO_STRUCT(r->out);
 
@@ -201,6 +207,7 @@ _PUBLIC_ void ndr_print_unixinfo_UidToSid(struct ndr_print *ndr, const char *nam
 
 static enum ndr_err_code ndr_push_unixinfo_SidToGid(struct ndr_push *ndr, int flags, const struct unixinfo_SidToGid *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, &r->in.sid));
        }
@@ -217,6 +224,7 @@ static enum ndr_err_code ndr_push_unixinfo_SidToGid(struct ndr_push *ndr, int fl
 static enum ndr_err_code ndr_pull_unixinfo_SidToGid(struct ndr_pull *ndr, int flags, struct unixinfo_SidToGid *r)
 {
        TALLOC_CTX *_mem_save_gid_0;
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                ZERO_STRUCT(r->out);
 
@@ -266,6 +274,7 @@ _PUBLIC_ void ndr_print_unixinfo_SidToGid(struct ndr_print *ndr, const char *nam
 
 static enum ndr_err_code ndr_push_unixinfo_GidToSid(struct ndr_push *ndr, int flags, const struct unixinfo_GidToSid *r)
 {
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.gid));
        }
@@ -282,6 +291,7 @@ static enum ndr_err_code ndr_push_unixinfo_GidToSid(struct ndr_push *ndr, int fl
 static enum ndr_err_code ndr_pull_unixinfo_GidToSid(struct ndr_pull *ndr, int flags, struct unixinfo_GidToSid *r)
 {
        TALLOC_CTX *_mem_save_sid_0;
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                ZERO_STRUCT(r->out);
 
@@ -333,6 +343,7 @@ static enum ndr_err_code ndr_push_unixinfo_GetPWUid(struct ndr_push *ndr, int fl
 {
        uint32_t cntr_uids_0;
        uint32_t cntr_infos_0;
+       NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                if (r->in.count == NULL) {
                        return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
@@ -366,6 +377,7 @@ static enum ndr_err_code ndr_pull_unixinfo_GetPWUid(struct ndr_pull *ndr, int fl
        TALLOC_CTX *_mem_save_count_0;
        TALLOC_CTX *_mem_save_uids_0;
        TALLOC_CTX *_mem_save_infos_0;
+       NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
        if (flags & NDR_IN) {
                ZERO_STRUCT(r->out);