1 /*
2 Copyright 1985, 1986, 1987, 1991, 1998  The Open Group
3 
4 Permission is hereby granted, free of charge, to any person obtaining a
5 copy of this software and associated documentation files (the
6 "Software"), to deal in the Software without restriction, including
7 without limitation the rights to use, copy, modify, merge, publish,
8 distribute, sublicense, and/or sell copies of the Software, and to
9 permit persons to whom the Software is furnished to do so, subject to
10 the following conditions: The above copyright notice and this
11 permission notice shall be included in all copies or substantial
12 portions of the Software.
13 
14 
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
21 EVEN IF ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
22 
23 
24 Except as contained in this notice, the name of The Open Group shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from The Open Group.
27 
28 
29 X Window System is a trademark of The Open Group
30 
31 OSF/1, OSF/Motif and Motif are registered trademarks, and OSF, the OSF
32 logo, LBX, X Window System, and Xinerama are trademarks of the Open
33 Group. All other trademarks and registered trademarks mentioned herein
34 are the property of their respective owners. No right, title or
35 interest in or to any trademark, service mark, logo or trade name of
36 Sun Microsystems, Inc. or its licensors is granted.
37 
38 */
39 /*
40  * Copyright 2000 Oracle and/or its affiliates. All rights reserved.
41  *
42  * Permission is hereby granted, free of charge, to any person obtaining a
43  * copy of this software and associated documentation files (the "Software"),
44  * to deal in the Software without restriction, including without limitation
45  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
46  * and/or sell copies of the Software, and to permit persons to whom the
47  * Software is furnished to do so, subject to the following conditions:
48  *
49  * The above copyright notice and this permission notice (including the next
50  * paragraph) shall be included in all copies or substantial portions of the
51  * Software.
52  *
53  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
54  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
55  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
56  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
57  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
58  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
59  * DEALINGS IN THE SOFTWARE.
60  */
61 
62 
63 #ifdef HAVE_CONFIG_H
64 #include <config.h>
65 #endif
66 #include "Xlibint.h"
67 #include "Xlcint.h"
68 
69 extern XIM _XDefaultOpenIM(
70 	XLCd, Display *, XrmDatabase, char *, char *
71 			   );
72 
73 Bool
_XInitDefaultIM(XLCd lcd)74 _XInitDefaultIM(XLCd lcd)
75 {
76     if(lcd == (XLCd)NULL)
77 	return False;
78 
79     lcd->methods->open_im = _XDefaultOpenIM;
80     lcd->methods->register_callback = NULL;
81     lcd->methods->unregister_callback = NULL;
82     return True;
83 }
84 
85 extern XOM _XDefaultOpenOM(
86     XLCd, Display*, XrmDatabase, _Xconst char*, _Xconst char*
87 			   );
88 
89 Bool
_XInitDefaultOM(XLCd lcd)90 _XInitDefaultOM(XLCd lcd)
91 {
92     lcd->methods->open_om = _XDefaultOpenOM;
93     return True;
94 }
95