diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-03-05 18:34:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:10:57 -0500 |
commit | 631aa1f0efa75924c4d8ba639de80527fb8da7b5 (patch) | |
tree | 6b6e0f16c6f5d1ec96cff1344973808c86311898 /source4/librpc/idl/winreg.idl | |
parent | df036e08294ec98a2c7049f7f2fe03de1fd2ae44 (diff) | |
download | samba-631aa1f0efa75924c4d8ba639de80527fb8da7b5.tar.gz samba-631aa1f0efa75924c4d8ba639de80527fb8da7b5.tar.bz2 samba-631aa1f0efa75924c4d8ba639de80527fb8da7b5.zip |
r5661: Be a little stricter on syntax regarding arrays. A pointer to an
array can now only be :
type *name[];
rather then :
type *name;
which was supported in the past. Warnings will be given when the first
syntax is used. Reasons for this change in behaviour include improved
readability and the fact that the second format makes dealing with multiple
levels of pointers harder.
(This used to be commit a416de5825c540fd3741731c4be05e9a659a6fdb)
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 a77af21a4b..a58a62f62f 100644 --- a/source4/librpc/idl/winreg.idl +++ b/source4/librpc/idl/winreg.idl @@ -136,7 +136,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( @@ -145,7 +145,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 ); @@ -157,7 +157,7 @@ ); typedef struct { - [size_is(size),length_is(len)] uint8 *data; + [size_is(size),length_is(len)] uint8 *data[]; uint32 size; uint32 len; } KeySecurityData; @@ -222,7 +222,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 ); @@ -256,7 +256,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 ); @@ -315,9 +315,9 @@ /* Function: 0x1d */ WERROR winreg_QueryMultipleValues( [in,ref] policy_handle *key_handle, - [in,out,size_is(num_values),length_is(num_values),ref] 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 ); |