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/lsa.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/lsa.idl')
-rw-r--r-- | source4/librpc/idl/lsa.idl | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl index 3737d4c0ea..0831b9ef12 100644 --- a/source4/librpc/idl/lsa.idl +++ b/source4/librpc/idl/lsa.idl @@ -48,7 +48,7 @@ typedef struct { uint32 count; - [size_is(count)] lsa_PrivEntry *privs[]; + [size_is(count)] lsa_PrivEntry *privs; } lsa_PrivArray; NTSTATUS lsa_EnumPrivs ( @@ -122,7 +122,7 @@ typedef struct { uint32 auditing_mode; - [size_is(count)] uint32 *settings[]; + [size_is(count)] uint32 *settings; uint32 count; } lsa_AuditEventsInfo; @@ -241,7 +241,7 @@ typedef [public] struct { [range(0,1000)] uint32 num_sids; - [size_is(num_sids)] lsa_SidPtr *sids[]; + [size_is(num_sids)] lsa_SidPtr *sids; } lsa_SidArray; NTSTATUS lsa_EnumAccounts ( @@ -281,7 +281,7 @@ typedef struct { uint32 count; - [size_is(count)] lsa_DomainInformation *domains[]; + [size_is(count)] lsa_DomainInformation *domains; } lsa_DomainList; NTSTATUS lsa_EnumTrustDom ( @@ -314,12 +314,12 @@ typedef struct { [range(0,1000)] uint32 count; - [size_is(count)] lsa_TranslatedSid *sids[]; + [size_is(count)] lsa_TranslatedSid *sids; } lsa_TransSidArray; typedef struct { [range(0,1000)] uint32 count; - [size_is(count)] lsa_TrustInformation *domains[]; + [size_is(count)] lsa_TrustInformation *domains; uint32 max_count; } lsa_RefDomainList; @@ -345,7 +345,7 @@ typedef struct { [range(0,1000)] uint32 count; - [size_is(count)] lsa_TranslatedName *names[]; + [size_is(count)] lsa_TranslatedName *names; } lsa_TransNameArray; NTSTATUS lsa_LookupSids ( @@ -435,12 +435,12 @@ typedef [flag(NDR_PAHEX)] struct { uint32 length; uint32 size; - [size_is(size),length_is(length)] uint8 *data[]; + [size_is(size),length_is(length)] uint8 *data; } lsa_DATA_BUF; typedef [flag(NDR_PAHEX)] struct { [range(0,65536)] uint32 size; - [size_is(size)] uint8 *data[]; + [size_is(size)] uint8 *data; } lsa_DATA_BUF2; typedef enum { @@ -614,7 +614,7 @@ typedef struct { uint32 count; - [size_is(count)] lsa_String *names[]; + [size_is(count)] lsa_String *names; } lsa_RightSet; NTSTATUS lsa_EnumAccountRights ( @@ -743,7 +743,7 @@ typedef struct { [range(0,1000)] uint32 count; - [size_is(count)] lsa_TranslatedName2 *names[]; + [size_is(count)] lsa_TranslatedName2 *names; } lsa_TransNameArray2; NTSTATUS lsa_LookupSids2( @@ -769,7 +769,7 @@ typedef struct { [range(0,1000)] uint32 count; - [size_is(count)] lsa_TranslatedSid2 *sids[]; + [size_is(count)] lsa_TranslatedSid2 *sids; } lsa_TransSidArray2; NTSTATUS lsa_LookupNames2 ( @@ -822,7 +822,7 @@ typedef struct { [range(0,1000)] uint32 count; - [size_is(count)] lsa_TranslatedSid3 *sids[]; + [size_is(count)] lsa_TranslatedSid3 *sids; } lsa_TransSidArray3; NTSTATUS lsa_LookupNames3 ( |