xref: /aoo42x/main/udkapi/com/sun/star/corba/giop/giop.idl (revision 408a4873)
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
23#include <com/sun/star/corba/iop/iop.idl>
24module com { module sun { module star { module corba { module giop
25{
26    /**
27      @deprecated
28     */
29published  	struct Version
30	{
31		byte major;
32		byte minor;
33	};
34
35    /**
36      @deprecated
37     */
38published enum MsgType_1_1
39	{
40		Request, Reply, CancelRequest,
41		LocateRequest, LocateReply,
42		CloseConnection, MessageError,
43		Fragment // GIOP 1.1 addition
44	};
45
46
47    /**
48      @deprecated
49     */
50published  	struct MessageHeader_1_0
51	{// Renamed from MessageHeader
52		byte magic_1;
53		byte magic_2;
54		byte magic_3;
55		byte magic_4;
56		Version GIOP_version;
57		boolean byte_order;
58		byte message_type;
59		unsigned long message_size;
60	};
61
62    /**
63      @deprecated
64     */
65published  	struct MessageHeader_1_1
66	{
67		byte magic_1;
68		byte magic_2;
69		byte magic_3;
70		byte magic_4;
71		Version GIOP_version;
72		byte flags; // GIOP 1.1 change
73		byte message_type;
74		unsigned long message_size;
75	};
76
77    /**
78      @deprecated
79     */
80published typedef MessageHeader_1_1 MessageHeader_1_2;
81
82    /**
83      @deprecated
84     */
85published  	struct RequestHeader_1_0
86	{
87		com::sun::star::corba::iop::ServiceContextList service_context;
88		unsigned long request_id;
89		boolean response_expected;
90		sequence < byte > object_key;
91		CorbaString8 operation;
92		sequence < byte > requesting_principal;
93	};
94
95    /**
96      @deprecated
97     */
98published  	struct RequestHeader_1_1
99	{
100		com::sun::star::corba::iop::ServiceContextList service_context;
101		unsigned long request_id;
102		boolean response_expected;
103		byte reserved_1;
104		byte reserved_2;
105		byte reserved_3; // Added in GIOP 1.1
106		sequence <byte> object_key;
107		CorbaString8 operation;
108		sequence <byte> requesting_principal; // binary compatible
109	};
110
111    /**
112      @deprecated
113     */
114published  	struct IORAddressingInfo
115	{
116		unsigned long selected_profile_index;
117		com::sun::star::corba::iop::IOR ior;
118	};
119
120    /**
121      @deprecated
122     */
123published constants TargetAddressGroup
124		{
125			const short KeyAddr = 0;
126			const short ProfileAddr = 1;
127			const short ReferenceAddr = 2;
128		};
129
130    /**
131      @deprecated
132     */
133published struct TargetAddress : CorbaUnion
134	{
135		short nDiscriminator;
136		sequence < byte > object_key;  // KeyAddr
137		com::sun::star::corba::iop::TaggedProfile profile;    // ProfileAddr
138		IORAddressingInfo ior;         // ReferenceAddr
139	};
140
141
142    /**
143      @deprecated
144     */
145published  	struct RequestHeader_1_2
146	{
147		unsigned long request_id;
148		byte response_flags;
149		byte reserved_1;
150		byte reserved_2;
151		byte reserved_3;
152		TargetAddress target;
153		CorbaString8 operation;
154// Principal not in GIOP 1.2
155		com::sun::star::corba::iop::ServiceContextList service_context; // 1.2 change
156	};
157
158
159    /**
160      @deprecated
161     */
162published enum ReplyStatusType_1_2
163	{
164		NO_EXCEPTION,
165		USER_EXCEPTION,
166		SYSTEM_EXCEPTION,
167		LOCATION_FORWARD,
168		LOCATION_FORWARD_PERM, // new value for 1.2
169		NEEDS_ADDRESSING_MODE // new value for 1.2
170	};
171
172
173    /**
174      @deprecated
175     */
176published  	struct ReplyHeader_1_2
177	{
178		unsigned long request_id;
179		ReplyStatusType_1_2 reply_status;
180		com::sun::star::corba::iop::ServiceContextList service_context; // 1.2 change
181	};
182
183    /**
184      @deprecated
185     */
186published  	struct SystemExceptionReplyBody
187	{
188		CorbaString8 exception_id;
189		unsigned long minor_code_value;
190		unsigned long completion_status;
191	};
192
193    /**
194      @deprecated
195     */
196published  	struct CancelRequestHeader
197	{
198		unsigned long request_id;
199	};
200
201    /**
202      @deprecated
203     */
204published  	struct LocateRequestHeader_1_0
205	{
206// Renamed LocationRequestHeader
207		unsigned long request_id;
208		sequence <byte> object_key;
209	};
210
211    /**
212      @deprecated
213     */
214published typedef LocateRequestHeader_1_0 LocateRequestHeader_1_1;
215
216    /**
217      @deprecated
218     */
219published enum LocateStatusType_1_2 {
220		UNKNOWN_OBJECT,
221		OBJECT_HERE,
222		OBJECT_FORWARD,
223		OBJECT_FORWARD_PERM, // new value for GIOP 1.2
224		LOC_SYSTEM_EXCEPTION, // new value for GIOP 1.2
225		LOC_NEEDS_ADDRESSING_MODE // new value for GIOP 1.2
226	};
227
228    /**
229      @deprecated
230     */
231published  	struct LocateReplyHeader_1_2
232	{
233		unsigned long request_id;
234		LocateStatusType_1_2 locate_status;
235	};
236
237    /**
238      @deprecated
239     */
240published  	struct FragmentHeader_1_2
241	{
242		unsigned long request_id;
243	};
244
245
246}; }; }; }; };
247
248