1 /*
2  * Motif
3  *
4  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22 */
23 #ifndef MrmDecls_H
24 #define MrmDecls_H
25 
26 /*----------------------------------*/
27 /* Error messages                   */
28 /*----------------------------------*/
29 /* The symbol _MrmConst is used for constant data that cannot be
30  * declared const in the header file because of usage as arguments to
31  * routines which have string arguments that are not declared const.
32  *
33  * So, _XmConst is always defined to be nothing in header files.
34  * In the source file, however, _XmConst is defined to be const,
35  * so as to allow shared data in a shared library environment.
36  */
37 
38 #ifndef _MrmConst
39 #define _MrmConst
40 #endif
41 
42 externalref _MrmConst char *_MrmMsg_0000;
43 externalref _MrmConst char *_MrmMsg_0001;
44 externalref _MrmConst char *_MrmMsg_0002;
45 externalref _MrmConst char *_MrmMsg_0003;
46 externalref _MrmConst char *_MrmMsg_0004;
47 externalref _MrmConst char *_MrmMsg_0005;
48 externalref _MrmConst char *_MrmMsg_0006;
49 externalref _MrmConst char *_MrmMsg_0007;
50 externalref _MrmConst char *_MrmMsg_0008;
51 externalref _MrmConst char *_MrmMsg_0009;
52 externalref _MrmConst char *_MrmMsg_0010;
53 externalref _MrmConst char *_MrmMsg_0011;
54 externalref _MrmConst char *_MrmMsg_0012;
55 externalref _MrmConst char *_MrmMsg_0013;
56 externalref _MrmConst char *_MrmMsg_0014;
57 externalref _MrmConst char *_MrmMsg_0015;
58 externalref _MrmConst char *_MrmMsg_0016;
59 externalref _MrmConst char *_MrmMsg_0017;
60 externalref _MrmConst char *_MrmMsg_0018;
61 externalref _MrmConst char *_MrmMsg_0019;
62 externalref _MrmConst char *_MrmMsg_0020;
63 externalref _MrmConst char *_MrmMsg_0021;
64 externalref _MrmConst char *_MrmMsg_0022;
65 externalref _MrmConst char *_MrmMsg_0023;
66 externalref _MrmConst char *_MrmMsg_0024;
67 externalref _MrmConst char *_MrmMsg_0025;
68 externalref _MrmConst char *_MrmMsg_0026;
69 externalref _MrmConst char *_MrmMsg_0027;
70 externalref _MrmConst char *_MrmMsg_0028;
71 externalref _MrmConst char *_MrmMsg_0029;
72 externalref _MrmConst char *_MrmMsg_0030;
73 externalref _MrmConst char *_MrmMsg_0031;
74 externalref _MrmConst char *_MrmMsg_0032;
75 externalref _MrmConst char *_MrmMsg_0033;
76 externalref _MrmConst char *_MrmMsg_0034;
77 externalref _MrmConst char *_MrmMsg_0035;
78 externalref _MrmConst char *_MrmMsg_0036;
79 externalref _MrmConst char *_MrmMsg_0037;
80 externalref _MrmConst char *_MrmMsg_0038;
81 externalref _MrmConst char *_MrmMsg_0039;
82 externalref _MrmConst char *_MrmMsg_0040;
83 externalref _MrmConst char *_MrmMsg_0041;
84 externalref _MrmConst char *_MrmMsg_0042;
85 externalref _MrmConst char *_MrmMsg_0043;
86 externalref _MrmConst char *_MrmMsg_0044;
87 externalref _MrmConst char *_MrmMsg_0045;
88 externalref _MrmConst char *_MrmMsg_0046;
89 externalref _MrmConst char *_MrmMsg_0047;
90 externalref _MrmConst char *_MrmMsg_0048;
91 externalref _MrmConst char *_MrmMsg_0049;
92 externalref _MrmConst char *_MrmMsg_0050;
93 externalref _MrmConst char *_MrmMsg_0051;
94 externalref _MrmConst char *_MrmMsg_0052;
95 externalref _MrmConst char *_MrmMsg_0053;
96 externalref _MrmConst char *_MrmMsg_0054;
97 externalref _MrmConst char *_MrmMsg_0055;
98 externalref _MrmConst char *_MrmMsg_0056;
99 externalref _MrmConst char *_MrmMsg_0057;
100 externalref _MrmConst char *_MrmMsg_0058;
101 externalref _MrmConst char *_MrmMsg_0059;
102 externalref _MrmConst char *_MrmMsg_0060;
103 externalref _MrmConst char *_MrmMsg_0061;
104 externalref _MrmConst char *_MrmMsg_0062;
105 externalref _MrmConst char *_MrmMsg_0063;
106 externalref _MrmConst char *_MrmMsg_0064;
107 externalref _MrmConst char *_MrmMsg_0065;
108 externalref _MrmConst char *_MrmMsg_0066;
109 externalref _MrmConst char *_MrmMsg_0067;
110 externalref _MrmConst char *_MrmMsg_0068;
111 externalref _MrmConst char *_MrmMsg_0069;
112 externalref _MrmConst char *_MrmMsg_0070;
113 externalref _MrmConst char *_MrmMsg_0071;
114 externalref _MrmConst char *_MrmMsg_0072;
115 externalref _MrmConst char *_MrmMsg_0073;
116 externalref _MrmConst char *_MrmMsg_0074;
117 externalref _MrmConst char *_MrmMsg_0075;
118 externalref _MrmConst char *_MrmMsg_0076;
119 externalref _MrmConst char *_MrmMsg_0077;
120 externalref _MrmConst char *_MrmMsg_0078;
121 externalref _MrmConst char *_MrmMsg_0079;
122 externalref _MrmConst char *_MrmMsg_0080;
123 externalref _MrmConst char *_MrmMsg_0081;
124 externalref _MrmConst char *_MrmMsg_0082;
125 externalref _MrmConst char *_MrmMsg_0083;
126 externalref _MrmConst char *_MrmMsg_0084;
127 externalref _MrmConst char *_MrmMsg_0085;
128 externalref _MrmConst char *_MrmMsg_0086;
129 externalref _MrmConst char *_MrmMsg_0087;
130 externalref _MrmConst char *_MrmMsg_0088;
131 externalref _MrmConst char *_MrmMsg_0089;
132 externalref _MrmConst char *_MrmMsg_0090;
133 externalref _MrmConst char *_MrmMsg_0091;
134 externalref _MrmConst char *_MrmMsg_0092;
135 externalref _MrmConst char *_MrmMsg_0093;
136 externalref _MrmConst char *_MrmMsg_0094;
137 externalref _MrmConst char *_MrmMsg_0095;
138 externalref _MrmConst char *_MrmMsg_0096;
139 externalref _MrmConst char *_MrmMsg_0097;
140 externalref _MrmConst char *_MrmMsg_0098;
141 externalref _MrmConst char *_MrmMsg_0099;
142 externalref _MrmConst char *_MrmMsg_0100;
143 externalref _MrmConst char *_MrmMsg_0101;
144 externalref _MrmConst char *_MrmMsg_0102;
145 externalref _MrmConst char *_MrmMsg_0103;
146 externalref _MrmConst char *_MrmMsg_0104;
147 externalref _MrmConst char *_MrmMsg_0105;
148 externalref _MrmConst char *_MrmMsg_0106;
149 externalref _MrmConst char *_MrmMsg_0107;
150 externalref _MrmConst char *_MrmMsg_0108;
151 externalref _MrmConst char *_MrmMsg_0109;
152 /* BEGIN OSF Fix CR 4859 */
153 externalref _MrmConst char *_MrmMsg_0110;
154 /* END OSF Fix CR 4859 */
155 externalref _MrmConst char *_MrmMsg_0111;
156 externalref _MrmConst char *_MrmMsg_0112;
157 externalref _MrmConst char *_MrmMsg_0113;
158 externalref _MrmConst char *_MrmMsg_0114;
159 externalref _MrmConst char *_MrmMsg_0115;
160 externalref _MrmConst char *_MrmMsg_0116;
161 externalref _MrmConst char *_MrmMsg_0117;
162 externalref _MrmConst char *_MrmMsg_0118;
163 externalref _MrmConst char *_MrmMsg_0119;
164 
165 /*----------------------------------*/
166 /* URM external routines (Motif)    */
167 /*----------------------------------*/
168 #ifndef _ARGUMENTS
169 #define _ARGUMENTS(arglist) arglist
170 #endif
171 
172 #if defined(__cplusplus) || defined(c_plusplus)
173 extern "C" {
174 #endif
175 
176 /* mrminit.c */
177 extern void MrmInitialize  _ARGUMENTS(( void ));
178 
179 /* mrmlread.c */
180 extern Cardinal MrmFetchLiteral  _ARGUMENTS(( MrmHierarchy hierarchy_id , String index , Display *display , XtPointer *value_return , MrmCode *type_return ));
181 extern Cardinal MrmFetchIconLiteral  _ARGUMENTS(( MrmHierarchy hierarchy_id , String index , Screen *screen , Display *display , Pixel fgpix , Pixel bgpix , Pixmap *pixmap_return ));
182 extern Cardinal MrmFetchBitmapLiteral  _ARGUMENTS(( MrmHierarchy hierarchy_id , String index , Screen *screen , Display *display , Pixmap *pixmap_return , Dimension *width , Dimension *height));
183 extern Cardinal MrmFetchColorLiteral  _ARGUMENTS(( MrmHierarchy hierarchy_id , String index , Display *display , Colormap cmap , Pixel *pixel_return ));
184 
185 /* Deal with Wide stuff now because there is an error in Saber 3.0 */
186 
187 #if NeedWidePrototypes
188 
189 extern Cardinal MrmOpenHierarchy  _ARGUMENTS(( int num_files , String *name_list , MrmOsOpenParamPtr *os_ext_list , MrmHierarchy *hierarchy_id_return ));
190 extern Cardinal MrmOpenHierarchyPerDisplay  _ARGUMENTS(( Display *display , int num_files , String *name_list , MrmOsOpenParamPtr *os_ext_list , MrmHierarchy *hierarchy_id_return ));
191 extern Cardinal MrmRegisterNames  _ARGUMENTS(( MrmRegisterArglist reglist ,int num_reg ));
192 extern Cardinal MrmRegisterNamesInHierarchy  _ARGUMENTS(( MrmHierarchy hierarchy_id , MrmRegisterArglist reglist , int num_reg ));
193 
194 #if defined(__cplusplus) || defined(c_plusplus)
195 extern Cardinal MrmRegisterClass  _ARGUMENTS(( int class_code , String class_name , String create_name , Widget (*creator )(...), WidgetClass class_record ));
196 extern Cardinal MrmRegisterClassWithCleanup  _ARGUMENTS(( int class_code , String class_name , String create_name , Widget (*creator )(), WidgetClass class_record, void (*cleanup)(...) ));
197 #else
198 extern Cardinal MrmRegisterClass  _ARGUMENTS(( int class_code , String class_name , String create_name , Widget (*creator )(), WidgetClass class_record ));
199 extern Cardinal MrmRegisterClassWithCleanup  _ARGUMENTS(( int class_code , String class_name , String create_name , Widget (*creator )(), WidgetClass class_record, void (*cleanup)() ));
200 #endif
201 
202 #else
203 
204 extern Cardinal MrmOpenHierarchy  _ARGUMENTS(( MrmCount num_files , String *name_list , MrmOsOpenParamPtr *os_ext_list , MrmHierarchy *hierarchy_id_return ));
205 extern Cardinal MrmOpenHierarchyPerDisplay  _ARGUMENTS(( Display *display , MrmCount num_files , String *name_list , MrmOsOpenParamPtr *os_ext_list , MrmHierarchy *hierarchy_id_return ));
206 extern Cardinal MrmRegisterNames  _ARGUMENTS(( MrmRegisterArglist reglist ,MrmCount num_reg ));
207 extern Cardinal MrmRegisterNamesInHierarchy  _ARGUMENTS(( MrmHierarchy hierarchy_id , MrmRegisterArglist reglist , MrmCount num_reg ));
208 extern Cardinal MrmRegisterClass  _ARGUMENTS(( MrmType class_code , String class_name , String create_name , Widget (*creator )(), WidgetClass class_record ));
209 extern Cardinal MrmRegisterClassWithCleanup  _ARGUMENTS(( MrmType class_code , String class_name , String create_name , Widget (*creator )(), WidgetClass class_record, void (*cleanup)() ));
210 
211 #endif
212 
213 extern Cardinal MrmCloseHierarchy  _ARGUMENTS(( MrmHierarchy hierarchy_id ));
214 extern Cardinal MrmFetchInterfaceModule  _ARGUMENTS(( MrmHierarchy hierarchy_id , char *module_name , Widget parent , Widget *w_return ));
215 extern Cardinal MrmFetchWidget  _ARGUMENTS(( MrmHierarchy hierarchy_id , String index , Widget parent , Widget *w_return , MrmType *class_return ));
216 extern Cardinal MrmFetchWidgetOverride  _ARGUMENTS(( MrmHierarchy hierarchy_id , String index , Widget parent , String ov_name , ArgList ov_args , Cardinal ov_num_args , Widget *w_return , MrmType *class_return ));
217 extern Cardinal MrmFetchSetValues  _ARGUMENTS(( MrmHierarchy hierarchy_id , Widget w , ArgList args , Cardinal num_args ));
218 
219 /* mrmwci.c */
220 
221 /* extern Cardinal XmRegisterMrmCallbacks () ; */
222 
223 #if defined(__cplusplus) || defined(c_plusplus)
224 }
225 #endif
226 
227 #undef _ARGUMENTS
228 
229 #endif /* MrmDecls_H */
230 /* DON'T ADD STUFF AFTER THIS #endif */
231