summaryrefslogtreecommitdiff
path: root/source4/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
commit9854192923d7daba3ba74d9fa6a0a3355b68b6cb (patch)
tree96e636b624332177793c1b3d3b089b51fc978fdb /source4/librpc
parentec739190fbd72cd8e585bcfa87eed1913bb94780 (diff)
downloadsamba-9854192923d7daba3ba74d9fa6a0a3355b68b6cb.tar.gz
samba-9854192923d7daba3ba74d9fa6a0a3355b68b6cb.tar.bz2
samba-9854192923d7daba3ba74d9fa6a0a3355b68b6cb.zip
r26147: Add IDL and torture test for wkssvc_NetrUseDel and wkssvc_NetrUseAdd.
Guenther (This used to be commit b5b3cc1667f539ab75f2d3d0c9c79b45d85e967e)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/wkssvc.idl43
1 files changed, 32 insertions, 11 deletions
diff --git a/source4/librpc/idl/wkssvc.idl b/source4/librpc/idl/wkssvc.idl
index a3e08c9444..cc25ad3c2f 100644
--- a/source4/librpc/idl/wkssvc.idl
+++ b/source4/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;