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