re-run make idl.
authorGünther Deschner <gd@samba.org>
Wed, 27 Aug 2008 22:58:50 +0000 (00:58 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 29 Aug 2008 11:58:02 +0000 (13:58 +0200)
Guenther
(This used to be commit 72c660757fd3a5b20ec6de0e4ada361e0aa9e2c4)

source3/librpc/gen_ndr/libnetapi.h
source3/librpc/gen_ndr/ndr_libnetapi.c
source3/librpc/gen_ndr/ndr_libnetapi.h

index 25ed3e04e5046491c3e3eb4e4ff86edecaea6607..6a2606507c1ac94ae0c770069f0e70e54ee97997 100644 (file)
@@ -546,6 +546,17 @@ struct TIME_OF_DAY_INFO {
        uint32_t tod_weekday;
 };
 
+struct SHARE_INFO_2 {
+       const char * shi2_netname;
+       uint32_t shi2_type;
+       const char * shi2_remark;
+       uint32_t shi2_permissions;
+       uint32_t shi2_max_uses;
+       uint32_t shi2_current_uses;
+       const char * shi2_path;
+       const char * shi2_passwd;
+};
+
 
 struct NetJoinDomain {
        struct {
@@ -1127,4 +1138,19 @@ struct NetRemoteTOD {
 
 };
 
+
+struct NetShareAdd {
+       struct {
+               const char * server_name;
+               uint32_t level;
+               uint8_t *buffer;/* [ref] */
+       } in;
+
+       struct {
+               uint32_t *parm_err;/* [ref] */
+               enum NET_API_STATUS result;
+       } out;
+
+};
+
 #endif /* _HEADER_libnetapi */
index 9bbcfc9a30823bd610b9b53f49e611ae10609d60..44b1c85c179a3c05c9b77bb3cfbe0701286a41ac 100644 (file)
@@ -3364,3 +3364,34 @@ _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, in
        ndr->depth--;
 }
 
+_PUBLIC_ void ndr_print_NetShareAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetShareAdd *r)
+{
+       ndr_print_struct(ndr, name, "NetShareAdd");
+       ndr->depth++;
+       if (flags & NDR_SET_VALUES) {
+               ndr->flags |= LIBNDR_PRINT_SET_VALUES;
+       }
+       if (flags & NDR_IN) {
+               ndr_print_struct(ndr, "in", "NetShareAdd");
+               ndr->depth++;
+               ndr_print_string(ndr, "server_name", r->in.server_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->depth--;
+       }
+       if (flags & NDR_OUT) {
+               ndr_print_struct(ndr, "out", "NetShareAdd");
+               ndr->depth++;
+               ndr_print_ptr(ndr, "parm_err", r->out.parm_err);
+               ndr->depth++;
+               ndr_print_uint32(ndr, "parm_err", *r->out.parm_err);
+               ndr->depth--;
+               ndr_print_NET_API_STATUS(ndr, "result", r->out.result);
+               ndr->depth--;
+       }
+       ndr->depth--;
+}
+
index 456a3e6e31613fc6fc4979faaed9c53e8db978c1..4d547b1c85903c1f97b5a2f4e37affc2587e37a4 100644 (file)
@@ -80,7 +80,9 @@
 
 #define NDR_NETREMOTETOD (0x24)
 
-#define NDR_LIBNETAPI_CALL_COUNT (37)
+#define NDR_NETSHAREADD (0x25)
+
+#define NDR_LIBNETAPI_CALL_COUNT (38)
 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);
@@ -315,4 +317,7 @@ void ndr_print_NetLocalGroupSetMembers(struct ndr_print *ndr, const char *name,
 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);
+enum ndr_err_code ndr_push_NetShareAdd(struct ndr_push *ndr, int flags, const struct NetShareAdd *r);
+enum ndr_err_code ndr_pull_NetShareAdd(struct ndr_pull *ndr, int flags, struct NetShareAdd *r);
+void ndr_print_NetShareAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetShareAdd *r);
 #endif /* _HEADER_NDR_libnetapi */