diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-20 00:57:59 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-20 00:57:59 +0000 |
commit | 66a827c921565ed8cb201228c335fca1d0d7b5e9 (patch) | |
tree | 17586a756b4d970497f9361cb2d8564ef5c130b2 /source4/librpc/idl | |
parent | fd15fc58e7b4dbe0d4eda81f979c8de97e9ac7ee (diff) | |
download | samba-66a827c921565ed8cb201228c335fca1d0d7b5e9.tar.gz samba-66a827c921565ed8cb201228c335fca1d0d7b5e9.tar.bz2 samba-66a827c921565ed8cb201228c335fca1d0d7b5e9.zip |
* changed to midl syntax using [case(x)] instead of case(x)
* use empty defaults instead of a dummy empty structure
(This used to be commit 555a340d3c0697b147799bc0a6615e01e196daf6)
Diffstat (limited to 'source4/librpc/idl')
-rw-r--r-- | source4/librpc/idl/dfs.idl | 30 | ||||
-rw-r--r-- | source4/librpc/idl/lsa.idl | 24 | ||||
-rw-r--r-- | source4/librpc/idl/samr.idl | 74 | ||||
-rw-r--r-- | source4/librpc/idl/spoolss.idl | 16 | ||||
-rw-r--r-- | source4/librpc/idl/srvsvc.idl | 71 | ||||
-rw-r--r-- | source4/librpc/idl/wkssvc.idl | 11 |
6 files changed, 104 insertions, 122 deletions
diff --git a/source4/librpc/idl/dfs.idl b/source4/librpc/idl/dfs.idl index 1fb16b60ca..8e8488e367 100644 --- a/source4/librpc/idl/dfs.idl +++ b/source4/librpc/idl/dfs.idl @@ -96,15 +96,15 @@ } dfs_Info300; typedef union { - case(1) dfs_Info1 *info1; - case(2) dfs_Info2 *info2; - case(3) dfs_Info3 *info3; - case(4) dfs_Info4 *info4; - case(100) dfs_Info100 *info100; - case(101) dfs_Info101 *info101; - case(102) dfs_Info102 *info102; - case(200) dfs_Info200 *info200; - case(300) dfs_Info300 *info300; + [case(1)] dfs_Info1 *info1; + [case(2)] dfs_Info2 *info2; + [case(3)] dfs_Info3 *info3; + [case(4)] dfs_Info4 *info4; + [case(100)] dfs_Info100 *info100; + [case(101)] dfs_Info101 *info101; + [case(102)] dfs_Info102 *info102; + [case(200)] dfs_Info200 *info200; + [case(300)] dfs_Info300 *info300; } dfs_Info; NTSTATUS dfs_GetInfo ( @@ -150,12 +150,12 @@ typedef union { - case(1) dfs_EnumArray1 *info1; - case(2) dfs_EnumArray2 *info2; - case(3) dfs_EnumArray3 *info3; - case(4) dfs_EnumArray4 *info4; - case(200) dfs_EnumArray200 *info200; - case(300) dfs_EnumArray300 *info300; + [case(1)] dfs_EnumArray1 *info1; + [case(2)] dfs_EnumArray2 *info2; + [case(3)] dfs_EnumArray3 *info3; + [case(4)] dfs_EnumArray4 *info4; + [case(200)] dfs_EnumArray200 *info200; + [case(300)] dfs_EnumArray300 *info300; } dfs_EnumInfo; typedef struct { diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl index afb6d849fb..6aedd33b97 100644 --- a/source4/librpc/idl/lsa.idl +++ b/source4/librpc/idl/lsa.idl @@ -174,18 +174,18 @@ } lsa_DnsDomainInfo; typedef union { - case(1) lsa_AuditLogInfo audit_log; - case(2) lsa_AuditEventsInfo audit_events; - case(3) lsa_DomainInfo domain; - case(4) lsa_PDAccountInfo pd; - case(5) lsa_DomainInfo account_domain; - case(6) lsa_ServerRole role; - case(7) lsa_ReplicaSourceInfo replica; - case(8) lsa_DefaultQuotaInfo quota; - case(9) lsa_ModificationInfo db; - case(10) lsa_AuditFullSetInfo auditfullset; - case(11) lsa_AuditFullQueryInfo auditfullquery; - case(12) lsa_DnsDomainInfo dns; + [case(1)] lsa_AuditLogInfo audit_log; + [case(2)] lsa_AuditEventsInfo audit_events; + [case(3)] lsa_DomainInfo domain; + [case(4)] lsa_PDAccountInfo pd; + [case(5)] lsa_DomainInfo account_domain; + [case(6)] lsa_ServerRole role; + [case(7)] lsa_ReplicaSourceInfo replica; + [case(8)] lsa_DefaultQuotaInfo quota; + [case(9)] lsa_ModificationInfo db; + [case(10)] lsa_AuditFullSetInfo auditfullset; + [case(11)] lsa_AuditFullQueryInfo auditfullquery; + [case(12)] lsa_DnsDomainInfo dns; } lsa_PolicyInformation; NTSTATUS lsa_QueryInfoPolicy ( diff --git a/source4/librpc/idl/samr.idl b/source4/librpc/idl/samr.idl index 4aa757da34..7fc2847620 100644 --- a/source4/librpc/idl/samr.idl +++ b/source4/librpc/idl/samr.idl @@ -181,18 +181,18 @@ } samr_DomInfo13; typedef union { - case(1) samr_DomInfo1 info1; - case(2) samr_DomInfo2 info2; - case(3) samr_DomInfo3 info3; - case(4) samr_DomInfo4 info4; - case(5) samr_DomInfo5 info5; - case(6) samr_DomInfo6 info6; - case(7) samr_DomInfo7 info7; - case(8) samr_DomInfo8 info8; - case(9) samr_DomInfo9 info9; - case(11) samr_DomInfo11 info11; - case(12) samr_DomInfo12 info12; - case(13) samr_DomInfo13 info13; + [case(1)] samr_DomInfo1 info1; + [case(2)] samr_DomInfo2 info2; + [case(3)] samr_DomInfo3 info3; + [case(4)] samr_DomInfo4 info4; + [case(5)] samr_DomInfo5 info5; + [case(6)] samr_DomInfo6 info6; + [case(7)] samr_DomInfo7 info7; + [case(8)] samr_DomInfo8 info8; + [case(9)] samr_DomInfo9 info9; + [case(11)] samr_DomInfo11 info11; + [case(12)] samr_DomInfo12 info12; + [case(13)] samr_DomInfo13 info13; } samr_DomainInfo; NTSTATUS samr_QueryDomainInfo( @@ -314,10 +314,10 @@ } samr_GroupInfoDesciption; typedef union { - case(1) samr_GroupInfoAll all; - case(2) samr_GroupInfoName name; - case(3) samr_GroupInfoX unknown; - case(4) samr_GroupInfoDesciption description; + [case(1)] samr_GroupInfoAll all; + [case(2)] samr_GroupInfoName name; + [case(3)] samr_GroupInfoX unknown; + [case(4)] samr_GroupInfoDesciption description; } samr_GroupInfo; NTSTATUS samr_QueryGroupInfo( @@ -379,9 +379,9 @@ } samr_AliasInfoDescription; typedef union { - case(1) samr_AliasInfoAll all; - case(2) samr_AliasInfoName name; - case(3) samr_AliasInfoDescription description; + [case(1)] samr_AliasInfoAll all; + [case(2)] samr_AliasInfoName name; + [case(3)] samr_AliasInfoDescription description; } samr_AliasInfo; NTSTATUS samr_QueryAliasInfo( @@ -581,24 +581,24 @@ } samr_UserInfo21; typedef union { - case(1) samr_UserInfo1 info1; - case(2) samr_UserInfo2 info2; - case(3) samr_UserInfo3 info3; - case(4) samr_UserInfo4 info4; - case(5) samr_UserInfo5 info5; - case(6) samr_UserInfo6 info6; - case(7) samr_UserInfo7 info7; - case(8) samr_UserInfo8 info8; - case(9) samr_UserInfo9 info9; - case(10) samr_UserInfo10 info10; - case(11) samr_UserInfo11 info11; - case(12) samr_UserInfo12 info12; - case(13) samr_UserInfo13 info13; - case(14) samr_UserInfo14 info14; - case(16) samr_UserInfo16 info16; - case(17) samr_UserInfo17 info17; - case(20) samr_UserInfo20 info20; - case(21) samr_UserInfo21 info21; + [case(1)] samr_UserInfo1 info1; + [case(2)] samr_UserInfo2 info2; + [case(3)] samr_UserInfo3 info3; + [case(4)] samr_UserInfo4 info4; + [case(5)] samr_UserInfo5 info5; + [case(6)] samr_UserInfo6 info6; + [case(7)] samr_UserInfo7 info7; + [case(8)] samr_UserInfo8 info8; + [case(9)] samr_UserInfo9 info9; + [case(10)] samr_UserInfo10 info10; + [case(11)] samr_UserInfo11 info11; + [case(12)] samr_UserInfo12 info12; + [case(13)] samr_UserInfo13 info13; + [case(14)] samr_UserInfo14 info14; + [case(16)] samr_UserInfo16 info16; + [case(17)] samr_UserInfo17 info17; + [case(20)] samr_UserInfo20 info20; + [case(21)] samr_UserInfo21 info21; } samr_UserInfo; NTSTATUS samr_QueryUserInfo( diff --git a/source4/librpc/idl/spoolss.idl b/source4/librpc/idl/spoolss.idl index 362e692aaf..a78dabd533 100644 --- a/source4/librpc/idl/spoolss.idl +++ b/source4/librpc/idl/spoolss.idl @@ -108,13 +108,13 @@ } spoolss_PrinterInfo7; typedef [nodiscriminant,public] union { - case(1) spoolss_PrinterInfo1 info1; - case(2) spoolss_PrinterInfo2 info2; - case(3) spoolss_PrinterInfo3 info3; - case(4) spoolss_PrinterInfo4 info4; - case(5) spoolss_PrinterInfo5 info5; - case(6) spoolss_PrinterInfo6 info6; - case(7) spoolss_PrinterInfo7 info7; + [case(1)] spoolss_PrinterInfo1 info1; + [case(2)] spoolss_PrinterInfo2 info2; + [case(3)] spoolss_PrinterInfo3 info3; + [case(4)] spoolss_PrinterInfo4 info4; + [case(5)] spoolss_PrinterInfo5 info5; + [case(6)] spoolss_PrinterInfo6 info6; + [case(7)] spoolss_PrinterInfo7 info7; } spoolss_PrinterInfo; WERROR spoolss_EnumPrinters( @@ -506,7 +506,7 @@ } spoolss_UserLevel1; typedef union { - case(1) spoolss_UserLevel1 *level1; + [case(1)] spoolss_UserLevel1 *level1; } spoolss_UserLevel; /******************/ diff --git a/source4/librpc/idl/srvsvc.idl b/source4/librpc/idl/srvsvc.idl index 40cb905e73..868888f5cc 100644 --- a/source4/librpc/idl/srvsvc.idl +++ b/source4/librpc/idl/srvsvc.idl @@ -74,13 +74,10 @@ [size_is(count)] srvsvc_NetConn1 *array; } srvsvc_NetConnCtr1; - typedef struct { - } srvsvc_NetConnCtrDefault; - typedef union { - case(0) srvsvc_NetConnCtr0 *ctr0; - case(1) srvsvc_NetConnCtr1 *ctr1; - default srvsvc_NetConnCtrDefault ctrDefault; + [case(0)] srvsvc_NetConnCtr0 *ctr0; + [case(1)] srvsvc_NetConnCtr1 *ctr1; + [default] ; } srvsvc_NetConnCtr; WERROR srvsvc_NetConnEnum( @@ -118,13 +115,10 @@ [size_is(count)] srvsvc_NetFile3 *array; } srvsvc_NetFileCtr3; - typedef struct { - } srvsvc_NetFileCtrDefault; - typedef union { - case(2) srvsvc_NetFileCtr2 *ctr2; - case(3) srvsvc_NetFileCtr3 *ctr3; - default srvsvc_NetFileCtrDefault ctrDefault; + [case(2)] srvsvc_NetFileCtr2 *ctr2; + [case(3)] srvsvc_NetFileCtr3 *ctr3; + [default] ; } srvsvc_NetFileCtr; WERROR srvsvc_NetFileEnum( @@ -217,16 +211,13 @@ [size_is(count)] srvsvc_NetSess502 *array; } srvsvc_NetSessCtr502; - typedef struct { - } srvsvc_NetSessCtrDefault; - typedef union { - case(0) srvsvc_NetSessCtr0 *ctr0; - case(1) srvsvc_NetSessCtr1 *ctr1; - case(2) srvsvc_NetSessCtr2 *ctr2; - case(10) srvsvc_NetSessCtr10 *ctr10; - case(502) srvsvc_NetSessCtr502 *ctr502; - default srvsvc_NetSessCtrDefault ctrDefault; + [case(0)] srvsvc_NetSessCtr0 *ctr0; + [case(1)] srvsvc_NetSessCtr1 *ctr1; + [case(2)] srvsvc_NetSessCtr2 *ctr2; + [case(10)] srvsvc_NetSessCtr10 *ctr10; + [case(502)] srvsvc_NetSessCtr502 *ctr502; + [default] ; } srvsvc_NetSessCtr; WERROR srvsvc_NetSessEnum( @@ -319,16 +310,13 @@ [size_is(count)] srvsvc_NetShare502 *array; } srvsvc_NetShareCtr502; - typedef struct { - } srvsvc_NetShareCtrDefault; - typedef union { - case(0) srvsvc_NetShareCtr0 *ctr0; - case(1) srvsvc_NetShareCtr1 *ctr1; - case(2) srvsvc_NetShareCtr2 *ctr2; - case(501) srvsvc_NetShareCtr501 *ctr501; - case(502) srvsvc_NetShareCtr502 *ctr502; - default srvsvc_NetShareCtrDefault ctrDefault; + [case(0)] srvsvc_NetShareCtr0 *ctr0; + [case(1)] srvsvc_NetShareCtr1 *ctr1; + [case(2)] srvsvc_NetShareCtr2 *ctr2; + [case(501)] srvsvc_NetShareCtr501 *ctr501; + [case(502)] srvsvc_NetShareCtr502 *ctr502; + [default] ; } srvsvc_NetShareCtr; WERROR srvsvc_NetShareEnumAll( @@ -418,15 +406,12 @@ [size_is(count)] srvsvc_NetDisk3 *array; } srvsvc_NetDiskCtr3; - typedef struct { - } srvsvc_NetDiskCtrDefault; - typedef union { - case(0) srvsvc_NetDiskCtr0 ctr0; - case(1) srvsvc_NetDiskCtr1 ctr1; - case(2) srvsvc_NetDiskCtr2 ctr2; - case(3) srvsvc_NetDiskCtr3 ctr3; - default srvsvc_NetDiskCtrDefault ctrDefault; + [case(0)] srvsvc_NetDiskCtr0 ctr0; + [case(1)] srvsvc_NetDiskCtr1 ctr1; + [case(2)] srvsvc_NetDiskCtr2 ctr2; + [case(3)] srvsvc_NetDiskCtr3 ctr3; + [default] ; } srvsvc_NetDiskSubCtr; typedef struct { @@ -499,14 +484,10 @@ [size_is(count)] srvsvc_NetTransport2 *array; } srvsvc_NetTransportCtr2; - typedef struct { - } srvsvc_NetTransportCtrDefault; - typedef union { - case(0) srvsvc_NetTransportCtr0 *ctr0; - case(1) srvsvc_NetTransportCtr1 *ctr1; - case(2) srvsvc_NetTransportCtr2 *ctr2; - default srvsvc_NetTransportCtrDefault ctrDefault; + [case(0)] srvsvc_NetTransportCtr0 *ctr0; + [case(1)] srvsvc_NetTransportCtr1 *ctr1; + [case(2)] srvsvc_NetTransportCtr2 *ctr2; } srvsvc_NetTransportCtr; WERROR srvsvc_NetTransportEnum( diff --git a/source4/librpc/idl/wkssvc.idl b/source4/librpc/idl/wkssvc.idl index e42e7ae4f0..2a1fb83f79 100644 --- a/source4/librpc/idl/wkssvc.idl +++ b/source4/librpc/idl/wkssvc.idl @@ -79,10 +79,10 @@ } wkssvc_Info502; typedef union { - case (100) wkssvc_Info100 *info100; - case (101) wkssvc_Info101 *info101; - case (102) wkssvc_Info102 *info102; - case (502) wkssvc_Info502 *info502; + [case(100)] wkssvc_Info100 *info100; + [case(101)] wkssvc_Info101 *info101; + [case(102)] wkssvc_Info102 *info102; + [case(502)] wkssvc_Info502 *info502; } wkssvc_Info; WERROR wkssvc_QueryInfo( @@ -126,7 +126,8 @@ } wkssvc_TransportInfoArray; typedef union { - case(0) wkssvc_TransportInfoArray *array; + [case(0)] wkssvc_TransportInfoArray *array; + [default] ; } wkssvc_TransportInfo; WERROR wkssvc_TransportEnum ( |