summaryrefslogtreecommitdiff
path: root/source/librpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-11-27 10:18:00 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:46:23 +0100
commitb5b3cc1667f539ab75f2d3d0c9c79b45d85e967e (patch)
treec29802ff7263135998b1eb4c73cf492f0d9274bc /source/librpc
parent72a14407ca407b670eb0feae8065e784ab1e4627 (diff)
downloadsamba-b5b3cc1667f539ab75f2d3d0c9c79b45d85e967e.tar.gz
r26147: Add IDL and torture test for wkssvc_NetrUseDel and wkssvc_NetrUseAdd.
Guenther
Diffstat (limited to 'source/librpc')
-rw-r--r--source/librpc/idl/wkssvc.idl43
1 files changed, 32 insertions, 11 deletions
diff --git a/source/librpc/idl/wkssvc.idl b/source/librpc/idl/wkssvc.idl
index a3e08c94449..cc25ad3c2f0 100644
--- a/source/librpc/idl/wkssvc.idl
+++ b/source/librpc/idl/wkssvc.idl
@@ -268,18 +268,11 @@ import "srvsvc.idl";
/*****************************/
/* Function 0x08 */
- WERROR WKSSVC_NETRUSEADD ();
-
- /*****************************/
- /* Function 0x09 */
- WERROR WKSSVC_NETRUSEGETINFO ();
-
- /*****************************/
- /* Function 0x0a */
- WERROR WKSSVC_NETRUSEDEL ();
+ typedef struct {
+ [string,charset(UTF16)] uint16 *unknown1;
+ [string,charset(UTF16)] uint16 *unknown2;
+ } wkssvc_NetrUseInfo3;
- /*****************************/
- /* Function 0x0b */
typedef struct {
[string,charset(UTF16)] uint16 *local;
[string,charset(UTF16)] uint16 *remote;
@@ -307,6 +300,34 @@ import "srvsvc.idl";
[string,charset(UTF16)] uint16 *remote;
} wkssvc_NetrUseInfo0;
+ typedef [switch_type(uint32)] union {
+ [case(0)] wkssvc_NetrUseInfo0 *info0;
+ [case(1)] wkssvc_NetrUseInfo1 *info1;
+ [case(2)] wkssvc_NetrUseInfo2 *info2;
+ [case(3)] wkssvc_NetrUseInfo3 *info3;
+ } wkssvc_NetrUseGetInfoCtr;
+
+ WERROR wkssvc_NetrUseAdd(
+ [in] [string,charset(UTF16)] uint16 *server_name,
+ [in] uint32 level,
+ [in] [switch_is(level)] [ref] wkssvc_NetrUseGetInfoCtr *ctr,
+ [in,out] uint32 *parm_err
+ );
+
+ /*****************************/
+ /* Function 0x09 */
+ WERROR WKSSVC_NETRUSEGETINFO ();
+
+ /*****************************/
+ /* Function 0x0a */
+ WERROR wkssvc_NetrUseDel(
+ [in] [string,charset(UTF16)] uint16 *server_name,
+ [in,ref] [string,charset(UTF16)] uint16 *use_name,
+ [in] uint32 force_cond
+ );
+
+ /*****************************/
+ /* Function 0x0b */
typedef struct {
uint32 count;
[size_is(count)] wkssvc_NetrUseInfo2 *array;