diff options
author | Günther Deschner <gd@samba.org> | 2008-08-11 19:08:46 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-08-11 19:47:15 +0200 |
commit | a296063e35ae596d0c6fe3ba95bfbc1c6fc9ae06 (patch) | |
tree | 2cae02d8654ad8329ffd5621a1a79c6cd88d470a | |
parent | 572495b0d619bed15354f5260265ee7bf82af967 (diff) | |
download | samba-a296063e35ae596d0c6fe3ba95bfbc1c6fc9ae06.tar.gz samba-a296063e35ae596d0c6fe3ba95bfbc1c6fc9ae06.tar.bz2 samba-a296063e35ae596d0c6fe3ba95bfbc1c6fc9ae06.zip |
re-run make idl.
Guenther
(This used to be commit b6b24094daf170f457bc414d8e17e43effab6e1b)
-rw-r--r-- | source3/librpc/gen_ndr/libnetapi.h | 117 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_libnetapi.c | 137 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_libnetapi.h | 24 |
3 files changed, 276 insertions, 2 deletions
diff --git a/source3/librpc/gen_ndr/libnetapi.h b/source3/librpc/gen_ndr/libnetapi.h index 04e62d14af..825557d573 100644 --- a/source3/librpc/gen_ndr/libnetapi.h +++ b/source3/librpc/gen_ndr/libnetapi.h @@ -471,6 +471,55 @@ struct LOCALGROUP_INFO_1002 { const char * lgrpi1002_comment; }; +enum SID_NAME_USE +#ifndef USE_UINT_ENUMS + { + SidTypeUser=1, + SidTypeGroup=2, + SidTypeDomain=3, + SidTypeAlias=4, + SidTypeWellKnownGroup=5, + SidTypeDeletedAccount=6, + SidTypeInvalid=7, + SidTypeUnknown=8, + SidTypeComputer=9, + SidTypeLabel=10 +} +#else + { __donnot_use_enum_SID_NAME_USE=0x7FFFFFFF} +#define SidTypeUser ( 1 ) +#define SidTypeGroup ( 2 ) +#define SidTypeDomain ( 3 ) +#define SidTypeAlias ( 4 ) +#define SidTypeWellKnownGroup ( 5 ) +#define SidTypeDeletedAccount ( 6 ) +#define SidTypeInvalid ( 7 ) +#define SidTypeUnknown ( 8 ) +#define SidTypeComputer ( 9 ) +#define SidTypeLabel ( 10 ) +#endif +; + +struct LOCALGROUP_MEMBERS_INFO_0 { + struct domsid *lgrmi0_sid;/* [unique] */ +}; + +struct LOCALGROUP_MEMBERS_INFO_1 { + struct domsid *lgrmi1_sid;/* [unique] */ + enum SID_NAME_USE lgrmi1_sidusage; + const char * lgrmi1_name; +}; + +struct LOCALGROUP_MEMBERS_INFO_2 { + struct domsid *lgrmi2_sid;/* [unique] */ + enum SID_NAME_USE lgrmi2_sidusage; + const char * lgrmi2_domainandname; +}; + +struct LOCALGROUP_MEMBERS_INFO_3 { + const char * lgrmi3_domainandname; +}; + struct TIME_OF_DAY_INFO { uint32_t tod_elapsedt; uint32_t tod_msecs; @@ -969,6 +1018,74 @@ struct NetLocalGroupEnum { }; +struct NetLocalGroupAddMembers { + struct { + const char * server_name; + const char * group_name; + uint32_t level; + uint8_t *buffer;/* [ref] */ + uint32_t total_entries; + } in; + + struct { + enum NET_API_STATUS result; + } out; + +}; + + +struct NetLocalGroupDelMembers { + struct { + const char * server_name; + const char * group_name; + uint32_t level; + uint8_t *buffer;/* [ref] */ + uint32_t total_entries; + } in; + + struct { + enum NET_API_STATUS result; + } out; + +}; + + +struct NetLocalGroupGetMembers { + struct { + const char * server_name; + const char * local_group_name; + uint32_t level; + uint32_t prefmaxlen; + uint32_t *resume_handle;/* [ref] */ + } in; + + struct { + uint8_t **buffer;/* [ref] */ + uint32_t *entries_read;/* [ref] */ + uint32_t *total_entries;/* [ref] */ + uint32_t *resume_handle;/* [ref] */ + enum NET_API_STATUS result; + } out; + +}; + + +struct NetLocalGroupSetMembers { + struct { + const char * server_name; + const char * group_name; + uint32_t level; + uint8_t *buffer;/* [ref] */ + uint32_t total_entries; + } in; + + struct { + enum NET_API_STATUS result; + } out; + +}; + + struct NetRemoteTOD { struct { const char * server_name; diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 393f0ad5e5..4d4a291a28 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3145,6 +3145,143 @@ _PUBLIC_ void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *nam ndr->depth--; } +_PUBLIC_ void ndr_print_NetLocalGroupAddMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAddMembers *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupAddMembers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupAddMembers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr_print_uint32(ndr, "total_entries", r->in.total_entries); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupAddMembers"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetLocalGroupDelMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDelMembers *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupDelMembers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupDelMembers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr_print_uint32(ndr, "total_entries", r->in.total_entries); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupDelMembers"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetLocalGroupGetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetMembers *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupGetMembers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupGetMembers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "local_group_name", r->in.local_group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupGetMembers"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetLocalGroupSetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetMembers *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupSetMembers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupSetMembers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr_print_uint32(ndr, "total_entries", r->in.total_entries); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupSetMembers"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r) { ndr_print_struct(ndr, name, "NetRemoteTOD"); diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.h b/source3/librpc/gen_ndr/ndr_libnetapi.h index 9a72d98542..9b5d8e7c35 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.h +++ b/source3/librpc/gen_ndr/ndr_libnetapi.h @@ -68,9 +68,17 @@ #define NDR_NETLOCALGROUPENUM (0x1e) -#define NDR_NETREMOTETOD (0x1f) +#define NDR_NETLOCALGROUPADDMEMBERS (0x1f) -#define NDR_LIBNETAPI_CALL_COUNT (32) +#define NDR_NETLOCALGROUPDELMEMBERS (0x20) + +#define NDR_NETLOCALGROUPGETMEMBERS (0x21) + +#define NDR_NETLOCALGROUPSETMEMBERS (0x22) + +#define NDR_NETREMOTETOD (0x23) + +#define NDR_LIBNETAPI_CALL_COUNT (36) enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r); enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r); void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r); @@ -287,6 +295,18 @@ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char *name, int enum ndr_err_code ndr_push_NetLocalGroupEnum(struct ndr_push *ndr, int flags, const struct NetLocalGroupEnum *r); enum ndr_err_code ndr_pull_NetLocalGroupEnum(struct ndr_pull *ndr, int flags, struct NetLocalGroupEnum *r); void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupEnum *r); +enum ndr_err_code ndr_push_NetLocalGroupAddMembers(struct ndr_push *ndr, int flags, const struct NetLocalGroupAddMembers *r); +enum ndr_err_code ndr_pull_NetLocalGroupAddMembers(struct ndr_pull *ndr, int flags, struct NetLocalGroupAddMembers *r); +void ndr_print_NetLocalGroupAddMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAddMembers *r); +enum ndr_err_code ndr_push_NetLocalGroupDelMembers(struct ndr_push *ndr, int flags, const struct NetLocalGroupDelMembers *r); +enum ndr_err_code ndr_pull_NetLocalGroupDelMembers(struct ndr_pull *ndr, int flags, struct NetLocalGroupDelMembers *r); +void ndr_print_NetLocalGroupDelMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDelMembers *r); +enum ndr_err_code ndr_push_NetLocalGroupGetMembers(struct ndr_push *ndr, int flags, const struct NetLocalGroupGetMembers *r); +enum ndr_err_code ndr_pull_NetLocalGroupGetMembers(struct ndr_pull *ndr, int flags, struct NetLocalGroupGetMembers *r); +void ndr_print_NetLocalGroupGetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetMembers *r); +enum ndr_err_code ndr_push_NetLocalGroupSetMembers(struct ndr_push *ndr, int flags, const struct NetLocalGroupSetMembers *r); +enum ndr_err_code ndr_pull_NetLocalGroupSetMembers(struct ndr_pull *ndr, int flags, struct NetLocalGroupSetMembers *r); +void ndr_print_NetLocalGroupSetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetMembers *r); enum ndr_err_code ndr_push_NetRemoteTOD(struct ndr_push *ndr, int flags, const struct NetRemoteTOD *r); enum ndr_err_code ndr_pull_NetRemoteTOD(struct ndr_pull *ndr, int flags, struct NetRemoteTOD *r); void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r); |