From 50d2bf00660c8c2c12cd1ea40b2212aa8250e611 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 27 May 2005 15:49:15 +0000 Subject: r7029: Make array support in pidl similar to that in other IDL compilers. We should now able to use constructions like these: [size_is(20)] int *x; -> Pointer to array of 20 ints [size_is(20)] int x[]; -> Array of 20 ints [size_is(20)] int *x[]; -> Array of 20 pointers to ints [size_is(20,)] int *x[] -> Array of 20 pointers to ints [size_is(,20)] int *x[]; -> Pointer to array of 20 ints [size_is(,20)] int **x; -> Pointer to pointer to array of 20 ints [size_is(20)] int x[][30]; -> 20 blocks of 30 ints (This used to be commit ecf583da71c2f80be124c17fccdcb284b47e0695) --- source4/librpc/idl/srvsvc.idl | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'source4/librpc/idl/srvsvc.idl') diff --git a/source4/librpc/idl/srvsvc.idl b/source4/librpc/idl/srvsvc.idl index 3661bfb9cc..0a9d910c1f 100644 --- a/source4/librpc/idl/srvsvc.idl +++ b/source4/librpc/idl/srvsvc.idl @@ -24,7 +24,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetCharDevInfo0 *array[]; + [size_is(count)] srvsvc_NetCharDevInfo0 *array; } srvsvc_NetCharDevCtr0; typedef struct { @@ -36,7 +36,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetCharDevInfo1 *array[]; + [size_is(count)] srvsvc_NetCharDevInfo1 *array; } srvsvc_NetCharDevCtr1; typedef union { @@ -88,7 +88,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetCharDevQInfo0 *array[]; + [size_is(count)] srvsvc_NetCharDevQInfo0 *array; } srvsvc_NetCharDevQCtr0; typedef struct { @@ -101,7 +101,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetCharDevQInfo1 *array[]; + [size_is(count)] srvsvc_NetCharDevQInfo1 *array; } srvsvc_NetCharDevQCtr1; typedef union { @@ -172,7 +172,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetConnInfo0 *array[]; + [size_is(count)] srvsvc_NetConnInfo0 *array; } srvsvc_NetConnCtr0; typedef struct { @@ -187,7 +187,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetConnInfo1 *array[]; + [size_is(count)] srvsvc_NetConnInfo1 *array; } srvsvc_NetConnCtr1; typedef union { @@ -217,7 +217,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetFileInfo2 *array[]; + [size_is(count)] srvsvc_NetFileInfo2 *array; } srvsvc_NetFileCtr2; typedef struct { @@ -230,7 +230,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetFileInfo3 *array[]; + [size_is(count)] srvsvc_NetFileInfo3 *array; } srvsvc_NetFileCtr3; typedef union { @@ -283,7 +283,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetSessInfo0 *array[]; + [size_is(count)] srvsvc_NetSessInfo0 *array; } srvsvc_NetSessCtr0; typedef struct { @@ -297,7 +297,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetSessInfo1 *array[]; + [size_is(count)] srvsvc_NetSessInfo1 *array; } srvsvc_NetSessCtr1; typedef struct { @@ -312,7 +312,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetSessInfo2 *array[]; + [size_is(count)] srvsvc_NetSessInfo2 *array; } srvsvc_NetSessCtr2; typedef struct { @@ -324,7 +324,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetSessInfo10 *array[]; + [size_is(count)] srvsvc_NetSessInfo10 *array; } srvsvc_NetSessCtr10; typedef struct { @@ -340,7 +340,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetSessInfo502 *array[]; + [size_is(count)] srvsvc_NetSessInfo502 *array; } srvsvc_NetSessCtr502; typedef union { @@ -402,7 +402,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetShareInfo0 *array[]; + [size_is(count)] srvsvc_NetShareInfo0 *array; } srvsvc_NetShareCtr0; typedef struct { @@ -413,7 +413,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetShareInfo1 *array[]; + [size_is(count)] srvsvc_NetShareInfo1 *array; } srvsvc_NetShareCtr1; typedef struct { @@ -429,7 +429,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetShareInfo2 *array[]; + [size_is(count)] srvsvc_NetShareInfo2 *array; } srvsvc_NetShareCtr2; typedef struct { @@ -441,7 +441,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetShareInfo501 *array[]; + [size_is(count)] srvsvc_NetShareInfo501 *array; } srvsvc_NetShareCtr501; typedef struct { @@ -459,7 +459,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetShareInfo502 *array[]; + [size_is(count)] srvsvc_NetShareInfo502 *array; } srvsvc_NetShareCtr502; typedef struct { @@ -1083,7 +1083,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetTransportInfo0 *array[]; + [size_is(count)] srvsvc_NetTransportInfo0 *array; } srvsvc_NetTransportCtr0; typedef struct { @@ -1097,7 +1097,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetTransportInfo1 *array[]; + [size_is(count)] srvsvc_NetTransportInfo1 *array; } srvsvc_NetTransportCtr1; typedef struct { @@ -1106,7 +1106,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetTransportInfo2 *array[]; + [size_is(count)] srvsvc_NetTransportInfo2 *array; } srvsvc_NetTransportCtr2; typedef struct { @@ -1115,7 +1115,7 @@ typedef struct { uint32 count; - [size_is(count)] srvsvc_NetTransportInfo3 *array[]; + [size_is(count)] srvsvc_NetTransportInfo3 *array; } srvsvc_NetTransportCtr3; typedef union { -- cgit