aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/lib/orber/include/corba.hrl
blob: b9869855bf97e02d7d52c8f38bcb5e3f1edc0ce2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
%%--------------------------------------------------------------------
%%
%% %CopyrightBegin%
%% 
%% Copyright Ericsson AB 1997-2009. All Rights Reserved.
%% 
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public License along with this software. If not, it can be
%% retrieved online at http://www.erlang.org/.
%% 
%% Software distributed under the License is distributed on an "AS IS"
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
%% the License for the specific language governing rights and limitations
%% under the License.
%% 
%% %CopyrightEnd%
%%
%%
%%------------------------------------------------------------
%% File: corba.hrl
%% 
%% Description:
%%    Standard header file for the Orber Erlang CORBA environment
%% 
%%-----------------------------------------------------------------
-ifndef(corba_hrl).
-define(corba_hrl, true).

%%
%% Implementation repository record (not used and can therefor be changed)
%%
-record(orb_ImplDef, {node, module, typename, start=start, args=[[]], pid}).

%%
%% Any record
%%
-record(any, {typecode, value}).

%%
%% Any record
%%
-record(fixed, {digits, scale, value}).

%%
%% Service context record
%%
-record('IOP_ServiceContext', {context_id, context_data}).

%%
%% Exception recod for the resolve initial reference functions
%%
-record('InvalidName', {'OE_ID'="IDL:omg.org/CORBA/ORB/InvalidName:1.0"}).

%% Orber OMG assigned TAG's
%% Service Context IDs 0x45524904 - 0x45524907  ("ERI\x04" - "ERI\x07")
%% Component IDs   0x45524904 - 0x45524907  ("ERI\x04" - "ERI\x07")
%% ORB type IDs    0x45524904 - 0x45524907  ("ERI\x04" - "ERI\x07")
-define(ORBER_ORB_TYPE_1, 16#45524904).
%-define(ORBER_ORB_TYPE_2, 16#45524905).
%-define(ORBER_ORB_TYPE_3, 16#45524906).
%-define(ORBER_ORB_TYPE_4, 16#45524907).

%-define(ORBER_COMPONENT_1, 16#45524904).
%-define(ORBER_COMPONENT_2, 16#45524905).
%-define(ORBER_COMPONENT_3, 16#45524906).
%-define(ORBER_COMPONENT_4, 16#45524907).

-define(ORBER_GENERIC_CTX_ID, 16#45524904).
%-define(ORBER_SERVICE_CTX_2, 16#45524905).
%-define(ORBER_SERVICE_CTX_3, 16#45524906).
%-define(ORBER_SERVICE_CTX_4, 16#45524907).

%%
%% System exceptions
%%

%% VMCID
%% VMCID base assigned to OMG
-define(CORBA_OMGVMCID, 16#4f4d0000).

%% Orber's VMCID base - "ER\x00\x00" - "ER\x0f\xff".
%% Range 16#45520000 -> 16#45520fff
-define(ORBER_VMCID,    16#45520000).

%% Some other Vendors VMCID bases.
-define(IONA_VMCID_1,   16#4f4f0000).
-define(IONA_VMCID_2,   16#49540000).
-define(SUN_VMCID,      16#53550000).
-define(BORLAND_VMCID,  16#56420000).
-define(TAO_VMCID,      16#54410000).
-define(PRISMTECH_VMCID,16#50540000).

-define(ex_body, {'OE_ID'="", minor=?ORBER_VMCID, completion_status}).

-record('UNKNOWN', ?ex_body).
-record('BAD_PARAM', ?ex_body).
-record('NO_MEMORY', ?ex_body).
-record('IMP_LIMIT', ?ex_body).
-record('COMM_FAILURE', ?ex_body).
-record('INV_OBJREF', ?ex_body).
-record('NO_PERMISSION', ?ex_body).
-record('INTERNAL', ?ex_body).
-record('MARSHAL', ?ex_body).
-record('INITIALIZE', ?ex_body).
-record('NO_IMPLEMENT', ?ex_body).
-record('BAD_TYPECODE', ?ex_body).
-record('BAD_OPERATION', ?ex_body).
-record('NO_RESOURCES', ?ex_body).
-record('NO_RESPONSE', ?ex_body).
-record('PERSIST_STORE', ?ex_body).
-record('BAD_INV_ORDER', ?ex_body).
-record('TRANSIENT', ?ex_body).
-record('FREE_MEM', ?ex_body).
-record('INV_IDENT', ?ex_body).
-record('INV_FLAG', ?ex_body).
-record('INTF_REPOS', ?ex_body).
-record('BAD_CONTEXT', ?ex_body).
-record('OBJ_ADAPTER', ?ex_body).
-record('DATA_CONVERSION', ?ex_body).
-record('OBJECT_NOT_EXIST', ?ex_body).
-record('TRANSACTION_REQUIRED', ?ex_body).
-record('TRANSACTION_ROLLEDBACK', ?ex_body).
-record('INVALID_TRANSACTION', ?ex_body).
-record('INV_POLICY', ?ex_body).
-record('CODESET_INCOMPATIBLE', ?ex_body).
-record('REBIND', ?ex_body).
-record('TIMEOUT', ?ex_body).
-record('TRANSACTION_UNAVAILABLE', ?ex_body).
-record('TRANSACTION_MODE', ?ex_body).
-record('BAD_QOS', ?ex_body).

%% Defines for the enum exception_type (is also used for reply_status)
-define(NO_EXCEPTION, 'no_exception').
-define(USER_EXCEPTION, 'user_exception').
-define(SYSTEM_EXCEPTION, 'system_exception').

%% Defines for the enum completion_status.
-define(COMPLETED_YES, 'COMPLETED_YES').
-define(COMPLETED_NO, 'COMPLETED_NO').
-define(COMPLETED_MAYBE, 'COMPLETED_MAYBE').


-undef(ex_body).


-endif.