diff options
author | Volker Lendecke <vl@samba.org> | 2009-08-23 12:38:35 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-08-29 10:44:12 +0200 |
commit | ffd9d41be93984b6a139818184716e709fbfa1ef (patch) | |
tree | cbda033406c331e14dc2de0d2aed91b4886edf84 /source3/librpc/gen_ndr | |
parent | 23abcd2318c69753aa2a144e1dc0f9cf9efdb705 (diff) | |
download | samba-ffd9d41be93984b6a139818184716e709fbfa1ef.tar.gz samba-ffd9d41be93984b6a139818184716e709fbfa1ef.tar.bz2 samba-ffd9d41be93984b6a139818184716e709fbfa1ef.zip |
s3:winbind: Rename wbint_GroupMember to wbint_Principal
Diffstat (limited to 'source3/librpc/gen_ndr')
-rw-r--r-- | source3/librpc/gen_ndr/ndr_wbint.c | 24 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_wbint.h | 6 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/wbint.h | 6 |
3 files changed, 18 insertions, 18 deletions
diff --git a/source3/librpc/gen_ndr/ndr_wbint.c b/source3/librpc/gen_ndr/ndr_wbint.c index bb0d01b0b7..c976ed407b 100644 --- a/source3/librpc/gen_ndr/ndr_wbint.c +++ b/source3/librpc/gen_ndr/ndr_wbint.c @@ -290,13 +290,13 @@ _PUBLIC_ void ndr_print_wbint_RidArray(struct ndr_print *ndr, const char *name, ndr->depth--; } -_PUBLIC_ enum ndr_err_code ndr_push_wbint_GroupMember(struct ndr_push *ndr, int ndr_flags, const struct wbint_GroupMember *r) +_PUBLIC_ enum ndr_err_code ndr_push_wbint_Principal(struct ndr_push *ndr, int ndr_flags, const struct wbint_Principal *r) { if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, &r->sid)); - NDR_CHECK(ndr_push_unique_ptr(ndr, r->name)); NDR_CHECK(ndr_push_lsa_SidType(ndr, NDR_SCALARS, r->type)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->name)); } if (ndr_flags & NDR_BUFFERS) { if (r->name) { @@ -309,20 +309,20 @@ _PUBLIC_ enum ndr_err_code ndr_push_wbint_GroupMember(struct ndr_push *ndr, int return NDR_ERR_SUCCESS; } -_PUBLIC_ enum ndr_err_code ndr_pull_wbint_GroupMember(struct ndr_pull *ndr, int ndr_flags, struct wbint_GroupMember *r) +_PUBLIC_ enum ndr_err_code ndr_pull_wbint_Principal(struct ndr_pull *ndr, int ndr_flags, struct wbint_Principal *r) { uint32_t _ptr_name; TALLOC_CTX *_mem_save_name_0; if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, &r->sid)); + NDR_CHECK(ndr_pull_lsa_SidType(ndr, NDR_SCALARS, &r->type)); NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_name)); if (_ptr_name) { NDR_PULL_ALLOC(ndr, r->name); } else { r->name = NULL; } - NDR_CHECK(ndr_pull_lsa_SidType(ndr, NDR_SCALARS, &r->type)); } if (ndr_flags & NDR_BUFFERS) { if (r->name) { @@ -341,18 +341,18 @@ _PUBLIC_ enum ndr_err_code ndr_pull_wbint_GroupMember(struct ndr_pull *ndr, int return NDR_ERR_SUCCESS; } -_PUBLIC_ void ndr_print_wbint_GroupMember(struct ndr_print *ndr, const char *name, const struct wbint_GroupMember *r) +_PUBLIC_ void ndr_print_wbint_Principal(struct ndr_print *ndr, const char *name, const struct wbint_Principal *r) { - ndr_print_struct(ndr, name, "wbint_GroupMember"); + ndr_print_struct(ndr, name, "wbint_Principal"); ndr->depth++; ndr_print_dom_sid(ndr, "sid", &r->sid); + ndr_print_lsa_SidType(ndr, "type", r->type); ndr_print_ptr(ndr, "name", r->name); ndr->depth++; if (r->name) { ndr_print_string(ndr, "name", r->name); } ndr->depth--; - ndr_print_lsa_SidType(ndr, "type", r->type); ndr->depth--; } @@ -364,12 +364,12 @@ _PUBLIC_ enum ndr_err_code ndr_push_wbint_GroupMembers(struct ndr_push *ndr, int NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->num_members)); for (cntr_members_0 = 0; cntr_members_0 < r->num_members; cntr_members_0++) { - NDR_CHECK(ndr_push_wbint_GroupMember(ndr, NDR_SCALARS, &r->members[cntr_members_0])); + NDR_CHECK(ndr_push_wbint_Principal(ndr, NDR_SCALARS, &r->members[cntr_members_0])); } } if (ndr_flags & NDR_BUFFERS) { for (cntr_members_0 = 0; cntr_members_0 < r->num_members; cntr_members_0++) { - NDR_CHECK(ndr_push_wbint_GroupMember(ndr, NDR_BUFFERS, &r->members[cntr_members_0])); + NDR_CHECK(ndr_push_wbint_Principal(ndr, NDR_BUFFERS, &r->members[cntr_members_0])); } } return NDR_ERR_SUCCESS; @@ -387,7 +387,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_wbint_GroupMembers(struct ndr_pull *ndr, int _mem_save_members_0 = NDR_PULL_GET_MEM_CTX(ndr); NDR_PULL_SET_MEM_CTX(ndr, r->members, 0); for (cntr_members_0 = 0; cntr_members_0 < r->num_members; cntr_members_0++) { - NDR_CHECK(ndr_pull_wbint_GroupMember(ndr, NDR_SCALARS, &r->members[cntr_members_0])); + NDR_CHECK(ndr_pull_wbint_Principal(ndr, NDR_SCALARS, &r->members[cntr_members_0])); } NDR_PULL_SET_MEM_CTX(ndr, _mem_save_members_0, 0); if (r->members) { @@ -398,7 +398,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_wbint_GroupMembers(struct ndr_pull *ndr, int _mem_save_members_0 = NDR_PULL_GET_MEM_CTX(ndr); NDR_PULL_SET_MEM_CTX(ndr, r->members, 0); for (cntr_members_0 = 0; cntr_members_0 < r->num_members; cntr_members_0++) { - NDR_CHECK(ndr_pull_wbint_GroupMember(ndr, NDR_BUFFERS, &r->members[cntr_members_0])); + NDR_CHECK(ndr_pull_wbint_Principal(ndr, NDR_BUFFERS, &r->members[cntr_members_0])); } NDR_PULL_SET_MEM_CTX(ndr, _mem_save_members_0, 0); } @@ -416,7 +416,7 @@ _PUBLIC_ void ndr_print_wbint_GroupMembers(struct ndr_print *ndr, const char *na for (cntr_members_0=0;cntr_members_0<r->num_members;cntr_members_0++) { char *idx_0=NULL; if (asprintf(&idx_0, "[%d]", cntr_members_0) != -1) { - ndr_print_wbint_GroupMember(ndr, "members", &r->members[cntr_members_0]); + ndr_print_wbint_Principal(ndr, "members", &r->members[cntr_members_0]); free(idx_0); } } diff --git a/source3/librpc/gen_ndr/ndr_wbint.h b/source3/librpc/gen_ndr/ndr_wbint.h index f6871ada6b..04a40be6b1 100644 --- a/source3/librpc/gen_ndr/ndr_wbint.h +++ b/source3/librpc/gen_ndr/ndr_wbint.h @@ -45,9 +45,9 @@ void ndr_print_wbint_SidArray(struct ndr_print *ndr, const char *name, const str enum ndr_err_code ndr_push_wbint_RidArray(struct ndr_push *ndr, int ndr_flags, const struct wbint_RidArray *r); enum ndr_err_code ndr_pull_wbint_RidArray(struct ndr_pull *ndr, int ndr_flags, struct wbint_RidArray *r); void ndr_print_wbint_RidArray(struct ndr_print *ndr, const char *name, const struct wbint_RidArray *r); -enum ndr_err_code ndr_push_wbint_GroupMember(struct ndr_push *ndr, int ndr_flags, const struct wbint_GroupMember *r); -enum ndr_err_code ndr_pull_wbint_GroupMember(struct ndr_pull *ndr, int ndr_flags, struct wbint_GroupMember *r); -void ndr_print_wbint_GroupMember(struct ndr_print *ndr, const char *name, const struct wbint_GroupMember *r); +enum ndr_err_code ndr_push_wbint_Principal(struct ndr_push *ndr, int ndr_flags, const struct wbint_Principal *r); +enum ndr_err_code ndr_pull_wbint_Principal(struct ndr_pull *ndr, int ndr_flags, struct wbint_Principal *r); +void ndr_print_wbint_Principal(struct ndr_print *ndr, const char *name, const struct wbint_Principal *r); enum ndr_err_code ndr_push_wbint_GroupMembers(struct ndr_push *ndr, int ndr_flags, const struct wbint_GroupMembers *r); enum ndr_err_code ndr_pull_wbint_GroupMembers(struct ndr_pull *ndr, int ndr_flags, struct wbint_GroupMembers *r); void ndr_print_wbint_GroupMembers(struct ndr_print *ndr, const char *name, const struct wbint_GroupMembers *r); diff --git a/source3/librpc/gen_ndr/wbint.h b/source3/librpc/gen_ndr/wbint.h index 7ed1fb2753..825b7e4068 100644 --- a/source3/librpc/gen_ndr/wbint.h +++ b/source3/librpc/gen_ndr/wbint.h @@ -28,15 +28,15 @@ struct wbint_RidArray { uint32_t *rids;/* [size_is(num_rids)] */ }/* [public] */; -struct wbint_GroupMember { +struct wbint_Principal { struct dom_sid sid; - const char *name;/* [unique,charset(UTF8)] */ enum lsa_SidType type; + const char *name;/* [unique,charset(UTF8)] */ }/* [public] */; struct wbint_GroupMembers { int32_t num_members; - struct wbint_GroupMember *members;/* [size_is(num_members)] */ + struct wbint_Principal *members;/* [size_is(num_members)] */ }/* [public] */; |