s3-srvsvc-idl: merge STR_LEN4 removal from s4.
authorGünther Deschner <gd@samba.org>
Thu, 30 Oct 2008 10:07:24 +0000 (11:07 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 31 Oct 2008 01:44:27 +0000 (02:44 +0100)
Guenther

source3/librpc/idl/srvsvc.idl

index 39d72b73da06a275f7cac93b8bc7108abedd8cb0..021b0e8d8703eb495289a3e02c8f6aedbc620ece 100644 (file)
@@ -1142,7 +1142,16 @@ import "security.idl", "svcctl.idl";
 /* srvsvc_NetDisk         */
 /**************************/
        typedef struct {
-               [flag(STR_LEN4)] string disk;
+               /*
+                * In theory this should be:
+                *      [charset(UTF16),string] uint16 annotation[3]
+                * But midl treats this as:
+                *      [charset(UTF16),string] uint16 annotation[]
+                * and pidl doesn't support this yet
+                */
+               [value(0)] uint32 __disk_offset;
+               [value(strlen(disk)+1)] uint32 __disk_length;
+               [charset(UTF16)] uint16 disk[__disk_length];
        } srvsvc_NetDiskInfo0;
 
        typedef struct {