diff options
author | Günther Deschner <gd@samba.org> | 2008-09-05 12:15:05 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-09-05 13:22:59 +0200 |
commit | 7c74e379a5f7935203c1a79120824d5f747eef31 (patch) | |
tree | 4266ba33bf9f92425307540d4f07d1a7796c0ec7 | |
parent | 3709e377702dd530f083071568d3311ad36b8cfb (diff) | |
download | samba-7c74e379a5f7935203c1a79120824d5f747eef31.tar.gz samba-7c74e379a5f7935203c1a79120824d5f747eef31.tar.bz2 samba-7c74e379a5f7935203c1a79120824d5f747eef31.zip |
re-run make idl.
Guenther
(This used to be commit 2e15036bacf717d27d1806bcbdba1e68f2f76aae)
-rw-r--r-- | source3/librpc/gen_ndr/libnetapi.h | 13 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_libnetapi.c | 31 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/ndr_libnetapi.h | 3 |
3 files changed, 47 insertions, 0 deletions
diff --git a/source3/librpc/gen_ndr/libnetapi.h b/source3/librpc/gen_ndr/libnetapi.h index f12c076781..0f65774291 100644 --- a/source3/librpc/gen_ndr/libnetapi.h +++ b/source3/librpc/gen_ndr/libnetapi.h @@ -26,6 +26,7 @@ #define FILTER_WORKSTATION_TRUST_ACCOUNT ( 0x0010 ) #define FILTER_SERVER_TRUST_ACCOUNT ( 0x0020 ) #define TIMEQ_FOREVER ( (uint32_t)-1L ) +#define CSC_MASK ( 0x30 ) enum NET_API_STATUS #ifndef USE_UINT_ENUMS { @@ -640,6 +641,18 @@ struct SHARE_INFO_1004 { const char * shi1004_remark; }; +/* bitmap SHARE_INFO_1005_FLAGS */ +#define SHI1005_FLAGS_DFS ( 0x01 ) +#define SHI1005_FLAGS_DFS_ROOT ( 0x02 ) +#define CSC_CACHE_MANUAL_REINT ( 0x00 ) +#define CSC_CACHE_AUTO_REINT ( 0x10 ) +#define CSC_CACHE_VDO ( 0x20 ) +#define CSC_CACHE_NONE ( 0x30 ) +#define SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS ( 0x0100 ) +#define SHI1005_FLAGS_FORCE_SHARED_DELETE ( 0x0200 ) +#define SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING ( 0x0400 ) +#define SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM ( 0x0800 ) + struct SHARE_INFO_1005 { uint32_t shi1005_flags; }; diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 3530a0877e..4520d210ba 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -2186,6 +2186,37 @@ _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *nam ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_SHARE_INFO_1005_FLAGS(struct ndr_push *ndr, int ndr_flags, uint32_t r) +{ + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r)); + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_SHARE_INFO_1005_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint32_t *r) +{ + uint32_t v; + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v)); + *r = v; + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_SHARE_INFO_1005_FLAGS(struct ndr_print *ndr, const char *name, uint32_t r) +{ + ndr_print_uint32(ndr, name, r); + ndr->depth++; + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_DFS", SHI1005_FLAGS_DFS, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_DFS_ROOT", SHI1005_FLAGS_DFS_ROOT, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_MANUAL_REINT", CSC_CACHE_MANUAL_REINT, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_AUTO_REINT", CSC_CACHE_AUTO_REINT, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_VDO", CSC_CACHE_VDO, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_NONE", CSC_CACHE_NONE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS", SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_FORCE_SHARED_DELETE", SHI1005_FLAGS_FORCE_SHARED_DELETE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING", SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM", SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM, r); + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r) { ndr_print_struct(ndr, name, "NetJoinDomain"); diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.h b/source3/librpc/gen_ndr/ndr_libnetapi.h index faebff6515..edfdec424c 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.h +++ b/source3/librpc/gen_ndr/ndr_libnetapi.h @@ -228,6 +228,9 @@ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, cons enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r); enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r); void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r); +enum ndr_err_code ndr_push_SHARE_INFO_1005_FLAGS(struct ndr_push *ndr, int ndr_flags, uint32_t r); +enum ndr_err_code ndr_pull_SHARE_INFO_1005_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint32_t *r); +void ndr_print_SHARE_INFO_1005_FLAGS(struct ndr_print *ndr, const char *name, uint32_t r); enum ndr_err_code ndr_push_NetJoinDomain(struct ndr_push *ndr, int flags, const struct NetJoinDomain *r); enum ndr_err_code ndr_pull_NetJoinDomain(struct ndr_pull *ndr, int flags, struct NetJoinDomain *r); void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r); |