epan/dissectors/pidl/ C99 drsuapi
[wireshark-sm.git] / epan / dissectors / corba-idl / parlay / osa.idl
blob5a9634373dd2f5a70d4453fd87c1b6c29625c529
1 //Source file: osa.idl
2 //Date: 7 October 2004
3 //Common Data Types for ES 203 915-2 V1.1.1, DES/TISPAN-01005-02, Parlay 5.0
5 #ifndef __OSA_DEFINED
6 #define __OSA_DEFINED
8 module org {
10 module csapi {
13 enum TpAddressError {
15 P_ADDRESS_INVALID_UNDEFINED,
16 P_ADDRESS_INVALID_MISSING,
17 P_ADDRESS_INVALID_MISSING_ELEMENT,
18 P_ADDRESS_INVALID_OUT_OF_RANGE,
19 P_ADDRESS_INVALID_INCOMPLETE,
20 P_ADDRESS_INVALID_CANNOT_DECODE
24 enum TpAddressPlan {
26 P_ADDRESS_PLAN_NOT_PRESENT,
27 P_ADDRESS_PLAN_UNDEFINED,
28 P_ADDRESS_PLAN_IP,
29 P_ADDRESS_PLAN_MULTICAST,
30 P_ADDRESS_PLAN_UNICAST,
31 P_ADDRESS_PLAN_E164,
32 P_ADDRESS_PLAN_AESA,
33 P_ADDRESS_PLAN_URL,
34 P_ADDRESS_PLAN_NSAP,
35 P_ADDRESS_PLAN_SMTP,
36 P_ADDRESS_PLAN_MSMAIL,
37 P_ADDRESS_PLAN_X400,
38 P_ADDRESS_PLAN_SIP,
39 P_ADDRESS_PLAN_ANY,
40 P_ADDRESS_PLAN_NATIONAL
44 enum TpAddressPresentation {
46 P_ADDRESS_PRESENTATION_UNDEFINED,
47 P_ADDRESS_PRESENTATION_ALLOWED,
48 P_ADDRESS_PRESENTATION_RESTRICTED,
49 P_ADDRESS_PRESENTATION_ADDRESS_NOT_AVAILABLE
53 enum TpAddressScreening {
55 P_ADDRESS_SCREENING_UNDEFINED,
56 P_ADDRESS_SCREENING_USER_VERIFIED_PASSED,
57 P_ADDRESS_SCREENING_USER_NOT_VERIFIED,
58 P_ADDRESS_SCREENING_USER_VERIFIED_FAILED,
59 P_ADDRESS_SCREENING_NETWORK
63 typedef boolean TpBoolean;
66 typedef float TpFloat;
69 typedef long TpInt32;
72 const TpInt32 P_METHOD_NOT_SUPPORTED = 22;
74 const TpInt32 P_NO_CALLBACK_ADDRESS_SET = 17;
76 const TpInt32 P_RESOURCES_UNAVAILABLE = 13;
78 const TpInt32 P_TASK_CANCELLED = 15;
80 const TpInt32 P_TASK_REFUSED = 14;
82 typedef TpInt32 TpAssignmentID;
85 typedef TpInt32 TpDuration;
88 typedef TpInt32 TpSessionID;
91 typedef sequence <TpSessionID> TpSessionIDSet;
94 typedef string TpString;
97 exception P_INVALID_ASSIGNMENT_ID {
98 TpString ExtraInformation;
102 exception P_INVALID_TIME_AND_DATE_FORMAT {
103 TpString ExtraInformation;
107 exception P_INVALID_EVENT_TYPE {
108 TpString ExtraInformation;
112 exception P_INVALID_INTERFACE_NAME {
113 TpString ExtraInformation;
117 exception P_INVALID_INTERFACE_TYPE {
118 TpString ExtraInformation;
122 exception P_UNKNOWN_SUBSCRIBER {
123 TpString ExtraInformation;
127 exception P_INFORMATION_NOT_AVAILABLE {
128 TpString ExtraInformation;
132 struct TpAddress {
133 TpAddressPlan Plan;
134 TpString AddrString;
135 TpString Name;
136 TpAddressPresentation Presentation;
137 TpAddressScreening Screening;
138 TpString SubAddressString;
142 struct TpAddressRange {
143 TpAddressPlan Plan;
144 TpString AddrString;
145 TpString Name;
146 TpString SubAddressString;
150 typedef sequence <TpAddress> TpAddressSet;
153 typedef TpString TpPrice;
156 typedef TpString TpDate;
159 typedef TpString TpDateAndTime;
162 typedef TpString TpTime;
165 typedef TpString TpURL;
168 typedef TpString TpLanguage;
170 enum TpCallAoCOrderCategory {
172 P_CHARGE_ADVICE_INFO,
173 P_CHARGE_PER_TIME,
174 P_CHARGE_NETWORK
178 struct TpCAIElements {
179 TpInt32 UnitsPerInterval;
180 TpInt32 SecondsPerTimeInterval;
181 TpInt32 ScalingFactor;
182 TpInt32 UnitIncrement;
183 TpInt32 UnitsPerDataInterval;
184 TpInt32 SegmentsPerDataInterval;
185 TpInt32 InitialSecsPerTimeInterval;
189 struct TpChargeAdviceInfo {
190 TpCAIElements CurrentCAI;
191 TpCAIElements NextCAI;
195 struct TpChargePerTime {
196 TpInt32 InitialCharge;
197 TpInt32 CurrentChargePerMinute;
198 TpInt32 NextChargePerMinute;
202 union TpAoCOrder switch(TpCallAoCOrderCategory) {
203 case P_CHARGE_ADVICE_INFO: TpChargeAdviceInfo ChargeAdviceInfo;
204 case P_CHARGE_PER_TIME: TpChargePerTime ChargePerTime;
205 case P_CHARGE_NETWORK: TpString NetworkCharge;
209 struct TpAoCInfo {
210 TpAoCOrder ChargeOrder;
211 TpString Currency;
215 exception P_INVALID_CRITERIA {
216 TpString ExtraInformation;
220 const TpInt32 P_INVALID_STATE = 744;
222 exception P_INVALID_SESSION_ID {
223 TpString ExtraInformation;
227 exception TpCommonExceptions {
228 TpInt32 ExceptionType;
229 TpString ExtraInformation;
233 exception P_INVALID_CURRENCY {
234 TpString ExtraInformation;
238 exception P_INVALID_AMOUNT {
239 TpString ExtraInformation;
243 struct TpTimeInterval {
244 TpDateAndTime StartTime;
245 TpDateAndTime StopTime;
249 exception P_APPLICATION_NOT_ACTIVATED {
250 TpString ExtraInformation;
254 exception P_INVALID_ADDRESS {
255 TpString ExtraInformation;
259 typedef octet TpOctet;
262 typedef sequence <TpOctet> TpOctetSet;
265 exception P_UNSUPPORTED_ADDRESS_PLAN {
266 TpString ExtraInformation;
270 exception P_UNAUTHORISED_PARAMETER_VALUE {
271 TpString ExtraInformation;
275 typedef string TpLongString;
278 typedef any TpAny;
281 typedef long long TpInt64;
284 typedef TpString TpVersion;
287 exception P_INVALID_VERSION {
288 TpString ExtraInformation;
292 typedef sequence <TpString> TpStringList;
295 typedef sequence <TpString> TpStringSet;
298 enum TpDataSessionQosClass {
300 P_DATA_SESSION_QOS_CLASS_CONVERSATIONAL,
301 P_DATA_SESSION_QOS_CLASS_STREAMING,
302 P_DATA_SESSION_QOS_CLASS_INTERACTIVE,
303 P_DATA_SESSION_QOS_CLASS_BACKGROUND
307 typedef TpString TpURN;
310 exception P_INVALID_NETWORK_STATE {
311 TpString ExtraInformation;
315 typedef sequence <TpOctet> TpUnorderedOctetSet;
318 typedef char TpChar;
321 typedef wchar TpWChar;
324 typedef wstring TpWString;
327 typedef short TpInt16;
330 typedef unsigned short TpUnsignedInt16;
333 typedef unsigned long TpUnsignedInt32;
336 typedef unsigned long long TpUnsignedInt64;
339 typedef double TpDouble;
342 typedef TpString TpXMLString;
345 typedef TpString TpStructuredAttributeType;
348 struct TpStructuredAttributeValue {
349 TpStructuredAttributeType Type;
350 TpAny Value;
354 enum TpSimpleAttributeTypeInfo {
356 P_BOOLEAN,
357 P_OCTET,
358 P_CHAR,
359 P_WCHAR,
360 P_STRING,
361 P_WSTRING,
362 P_INT16,
363 P_UNSIGNED_INT16,
364 P_INT32,
365 P_UNSIGNED_INT32,
366 P_INT64,
367 P_UNSIGNED_INT64,
368 P_FLOAT,
369 P_DOUBLE
373 union TpSimpleAttributeValue switch(TpSimpleAttributeTypeInfo) {
374 case P_BOOLEAN: TpBoolean BooleanValue;
375 case P_OCTET: TpOctet OctetValue;
376 case P_CHAR: TpChar CharValue;
377 case P_WCHAR: TpWChar WCharValue;
378 case P_STRING: TpString StringValue;
379 case P_WSTRING: TpWString WStringValue;
380 case P_INT16: TpInt16 Int16Value;
381 case P_UNSIGNED_INT16: TpUnsignedInt16 UnsignedInt16Value;
382 case P_INT32: TpInt32 Int32Value;
383 case P_UNSIGNED_INT32: TpUnsignedInt32 UnsignedInt32Value;
384 case P_INT64: TpInt64 Int64Value;
385 case P_UNSIGNED_INT64: TpUnsignedInt64 UnsignedInt64Value;
386 case P_FLOAT: TpFloat FloatValue;
387 case P_DOUBLE: TpDouble DoubleValue;
391 enum TpAttributeTagInfo {
393 P_SIMPLE_TYPE,
394 P_STRUCTURED_TYPE,
395 P_XML_TYPE
399 union TpAttributeValue switch(TpAttributeTagInfo) {
400 case P_SIMPLE_TYPE: TpSimpleAttributeValue SimpleValue;
401 case P_STRUCTURED_TYPE: TpStructuredAttributeValue StructuredValue;
402 case P_XML_TYPE: TpXMLString XMLValue;
406 struct TpAttribute {
407 TpString AttributeName;
408 TpAttributeValue AttributeValue;
412 typedef sequence <TpAttribute> TpAttributeList;
415 typedef sequence <TpAttribute> TpAttributeSet;
419 interface IpInterface {
423 interface IpService : IpInterface {
424 void setCallback (
425 in IpInterface appInterface
427 raises (TpCommonExceptions,P_INVALID_INTERFACE_TYPE);
429 void setCallbackWithSessionID (
430 in IpInterface appInterface,
431 in TpSessionID sessionID
433 raises (TpCommonExceptions,P_INVALID_SESSION_ID,P_INVALID_INTERFACE_TYPE);
441 #endif