diff options
author | Günther Deschner <gd@samba.org> | 2008-09-09 21:59:36 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-09-11 14:37:33 +0200 |
commit | 96619efec3d24f28e98562ee7055509daad067b5 (patch) | |
tree | 54b375fb3163438a4f711d9de7324253f2f80c35 /source3/librpc/gen_ndr | |
parent | e5ae75d001782482d3112324ea2147da8e5f392f (diff) | |
download | samba-96619efec3d24f28e98562ee7055509daad067b5.tar.gz samba-96619efec3d24f28e98562ee7055509daad067b5.tar.bz2 samba-96619efec3d24f28e98562ee7055509daad067b5.zip |
re-run make idl.
Guenther
(This used to be commit 995dea40629883ae9ac2871eeb033a168a3b4935)
Diffstat (limited to 'source3/librpc/gen_ndr')
-rw-r--r-- | source3/librpc/gen_ndr/libnetapi.h | 21 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_libnetapi.c | 51 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_libnetapi.h | 7 |
3 files changed, 78 insertions, 1 deletions
diff --git a/source3/librpc/gen_ndr/libnetapi.h b/source3/librpc/gen_ndr/libnetapi.h index 00e5f50b7f..98da9e12ea 100644 --- a/source3/librpc/gen_ndr/libnetapi.h +++ b/source3/librpc/gen_ndr/libnetapi.h @@ -1433,4 +1433,25 @@ struct NetFileGetInfo { }; + +struct NetFileEnum { + struct { + const char * server_name; + const char * base_path; + const char * user_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; + +}; + #endif /* _HEADER_libnetapi */ diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 8105cce401..a5266827b6 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3924,3 +3924,54 @@ _PUBLIC_ void ndr_print_NetFileGetInfo(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetFileEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetFileEnum *r) +{ + ndr_print_struct(ndr, name, "NetFileEnum"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetFileEnum"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "base_path", r->in.base_path); + ndr_print_string(ndr, "user_name", r->in.user_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", "NetFileEnum"); + 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--; +} + diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.h b/source3/librpc/gen_ndr/ndr_libnetapi.h index 3d41489990..d8e8e399b2 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.h +++ b/source3/librpc/gen_ndr/ndr_libnetapi.h @@ -102,7 +102,9 @@ #define NDR_NETFILEGETINFO (0x2f) -#define NDR_LIBNETAPI_CALL_COUNT (48) +#define NDR_NETFILEENUM (0x30) + +#define NDR_LIBNETAPI_CALL_COUNT (49) 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); @@ -385,4 +387,7 @@ void ndr_print_NetFileClose(struct ndr_print *ndr, const char *name, int flags, enum ndr_err_code ndr_push_NetFileGetInfo(struct ndr_push *ndr, int flags, const struct NetFileGetInfo *r); enum ndr_err_code ndr_pull_NetFileGetInfo(struct ndr_pull *ndr, int flags, struct NetFileGetInfo *r); void ndr_print_NetFileGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetFileGetInfo *r); +enum ndr_err_code ndr_push_NetFileEnum(struct ndr_push *ndr, int flags, const struct NetFileEnum *r); +enum ndr_err_code ndr_pull_NetFileEnum(struct ndr_pull *ndr, int flags, struct NetFileEnum *r); +void ndr_print_NetFileEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetFileEnum *r); #endif /* _HEADER_NDR_libnetapi */ |