diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-05-27 15:49:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:07 -0500 |
commit | 50d2bf00660c8c2c12cd1ea40b2212aa8250e611 (patch) | |
tree | acdc803745c2e09bc4c5325c3c02226ab4930486 /source4/librpc/idl/winreg.idl | |
parent | 38c2164f68514727140270821c569a106b705997 (diff) | |
download | samba-50d2bf00660c8c2c12cd1ea40b2212aa8250e611.tar.gz samba-50d2bf00660c8c2c12cd1ea40b2212aa8250e611.tar.bz2 samba-50d2bf00660c8c2c12cd1ea40b2212aa8250e611.zip |
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)
Diffstat (limited to 'source4/librpc/idl/winreg.idl')
-rw-r--r-- | source4/librpc/idl/winreg.idl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/librpc/idl/winreg.idl b/source4/librpc/idl/winreg.idl index 31f293267a..277cf54862 100644 --- a/source4/librpc/idl/winreg.idl +++ b/source4/librpc/idl/winreg.idl @@ -138,7 +138,7 @@ typedef struct { uint16 length; uint16 size; - [size_is(size/2),length_is(length/2)] uint16 *name[]; + [size_is(size/2),length_is(length/2)] uint16 *name; } winreg_EnumValueString; WERROR winreg_EnumValue( @@ -147,7 +147,7 @@ [in] winreg_EnumValueString name_in, [out] winreg_String name_out, [in,out] uint32 *type, - [in,out,size_is(*size),length_is(*length)] uint8 *value[], + [in,out,size_is(*size),length_is(*length)] uint8 *value, [in,out] uint32 *size, [in,out] uint32 *length ); @@ -159,7 +159,7 @@ ); typedef struct { - [size_is(size),length_is(len)] uint8 *data[]; + [size_is(size),length_is(len)] uint8 *data; uint32 size; uint32 len; } KeySecurityData; @@ -224,7 +224,7 @@ [in,ref] policy_handle *handle, [in] winreg_String value_name, [in,out] uint32 *type, - [in,out,size_is(*size),length_is(*length)] uint8 *data[], + [in,out,size_is(*size),length_is(*length)] uint8 *data, [in,out] uint32 *size, [in,out] uint32 *length ); @@ -258,7 +258,7 @@ [in,ref] policy_handle *handle, [in] winreg_String name, [in] uint32 type, - [in,size_is(size)] uint8 *data[], + [in,size_is(size)] uint8 *data, [in] uint32 size ); @@ -317,9 +317,9 @@ /* Function: 0x1d */ WERROR winreg_QueryMultipleValues( [in,ref] policy_handle *key_handle, - [in,out,ref,size_is(num_values),length_is(num_values)] QueryMultipleValue *values[], + [in,out,ref,size_is(num_values),length_is(num_values)] QueryMultipleValue *values, [in] uint32 num_values, - [in,out,size_is(*buffer_size),length_is(*buffer_size)] uint8 *buffer[], + [in,out,size_is(*buffer_size),length_is(*buffer_size)] uint8 *buffer, [in,out,ref] uint32 *buffer_size ); |