xref: /aoo41x/main/idlc/test/interface.idl (revision 540d5e64)
1*540d5e64SAndrew Rist/**************************************************************
2*540d5e64SAndrew Rist *
3*540d5e64SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*540d5e64SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*540d5e64SAndrew Rist * distributed with this work for additional information
6*540d5e64SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*540d5e64SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*540d5e64SAndrew Rist * "License"); you may not use this file except in compliance
9*540d5e64SAndrew Rist * with the License.  You may obtain a copy of the License at
10*540d5e64SAndrew Rist *
11*540d5e64SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*540d5e64SAndrew Rist *
13*540d5e64SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*540d5e64SAndrew Rist * software distributed under the License is distributed on an
15*540d5e64SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*540d5e64SAndrew Rist * KIND, either express or implied.  See the License for the
17*540d5e64SAndrew Rist * specific language governing permissions and limitations
18*540d5e64SAndrew Rist * under the License.
19*540d5e64SAndrew Rist *
20*540d5e64SAndrew Rist *************************************************************/
21*540d5e64SAndrew Rist
22cdf0e10cSrcweir#include <enum.idl>
23cdf0e10cSrcweir#include <struct.idl>
24cdf0e10cSrcweir
25cdf0e10cSrcweirmodule idlc
26cdf0e10cSrcweir{
27cdf0e10cSrcweir
28cdf0e10cSrcweirmodule test
29cdf0e10cSrcweir{
30cdf0e10cSrcweir
31cdf0e10cSrcweirinterface XBase
32cdf0e10cSrcweir{
33cdf0e10cSrcweir	[readonly, attribute] string description;
34cdf0e10cSrcweir
35cdf0e10cSrcweir	string getDescription();
36cdf0e10cSrcweir};
37cdf0e10cSrcweir
38cdf0e10cSrcweirinterface XTestBaseTypes : XBase
39cdf0e10cSrcweir{
40cdf0e10cSrcweir	void voidFunc();
41cdf0e10cSrcweir	[oneway] void onewayFunc();
42cdf0e10cSrcweir
43cdf0e10cSrcweir	short shortFunc( [in] short inparam, [out] short outparam, [inout] short inoutparam);
44cdf0e10cSrcweir	unsigned short uShortFunc( [in] unsigned short inparam, [out] unsigned short outparam, [inout] unsigned short inoutparam);
45cdf0e10cSrcweir
46cdf0e10cSrcweir	long longFunc( [in] long inparam, [out] long outparam, [inout] long inoutparam);
47cdf0e10cSrcweir	unsigned long ulongFunc( [in] unsigned long inparam, [out] unsigned long outparam, [inout] unsigned long inoutparam);
48cdf0e10cSrcweir
49cdf0e10cSrcweir	hyper hyperFunc( [in] hyper inparam, [out] hyper outparam, [inout] hyper inoutparam);
50cdf0e10cSrcweir	unsigned hyper uHyperFunc( [in] unsigned hyper inparam, [out] unsigned hyper outparam, [inout] unsigned hyper inoutparam);
51cdf0e10cSrcweir
52cdf0e10cSrcweir	float floatFunc( [in] float inparam, [out] float outparam, [inout] float inoutparam);
53cdf0e10cSrcweir	double doubleFunc( [in] double inparam, [out] double outparam, [inout] double inoutparam);
54cdf0e10cSrcweir	char charFunc( [in] char inparam, [out] char outparam, [inout] char inoutparam);
55cdf0e10cSrcweir	string stringFunc( [in] string inparam, [out] string outparam, [inout] string inoutparam);
56cdf0e10cSrcweir	byte byteFunc( [in] byte inparam, [out] byte outparam, [inout] byte inoutparam);
57cdf0e10cSrcweir
58cdf0e10cSrcweir	type typeFunc( [in] type inparam, [out] type outparam, [inout] type inoutparam);
59cdf0e10cSrcweir	any anyFunc( [in] any inparam, [out] any outparam, [inout] any inoutparam);
60cdf0e10cSrcweir};
61cdf0e10cSrcweir
62cdf0e10cSrcweir
63cdf0e10cSrcweirinterface XTestComplexTypes : XBase
64cdf0e10cSrcweir{
65cdf0e10cSrcweir	Error enumFunc( [in] Error inparam, [out] Error outparam, [inout] Error inoutparam);
66cdf0e10cSrcweir
67cdf0e10cSrcweir	BaseStruct structFunc( [in] ::idlc::test::BaseStruct inparam, [out] idlc::test::BaseStruct outparam, [inout] BaseStruct inoutparam);
68cdf0e10cSrcweir};
69cdf0e10cSrcweir
70cdf0e10cSrcweir};
71cdf0e10cSrcweir
72cdf0e10cSrcweir};
73