11ab64890Smrg/*
21ab64890SmrgCopyright 1985, 1986, 1987, 1991, 1998  The Open Group
31ab64890Smrg
41ab64890SmrgPermission is hereby granted, free of charge, to any person obtaining a
51ab64890Smrgcopy of this software and associated documentation files (the
61ab64890Smrg"Software"), to deal in the Software without restriction, including
71ab64890Smrgwithout limitation the rights to use, copy, modify, merge, publish,
81ab64890Smrgdistribute, sublicense, and/or sell copies of the Software, and to
91ab64890Smrgpermit persons to whom the Software is furnished to do so, subject to
101ab64890Smrgthe following conditions: The above copyright notice and this
111ab64890Smrgpermission notice shall be included in all copies or substantial
121ab64890Smrgportions of the Software.
131ab64890Smrg
141ab64890Smrg
15b4ee4795SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16b4ee4795SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17b4ee4795SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18b4ee4795SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19b4ee4795SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20b4ee4795SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
21b4ee4795SmrgEVEN IF ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
221ab64890Smrg
231ab64890Smrg
24b4ee4795SmrgExcept as contained in this notice, the name of The Open Group shall not be
25b4ee4795Smrgused in advertising or otherwise to promote the sale, use or other dealings
26b4ee4795Smrgin this Software without prior written authorization from The Open Group.
271ab64890Smrg
281ab64890Smrg
291ab64890SmrgX Window System is a trademark of The Open Group
301ab64890Smrg
311ab64890SmrgOSF/1, OSF/Motif and Motif are registered trademarks, and OSF, the OSF
321ab64890Smrglogo, LBX, X Window System, and Xinerama are trademarks of the Open
331ab64890SmrgGroup. All other trademarks and registered trademarks mentioned herein
341ab64890Smrgare the property of their respective owners. No right, title or
351ab64890Smrginterest in or to any trademark, service mark, logo or trade name of
361ab64890SmrgSun Microsystems, Inc. or its licensors is granted.
371ab64890Smrg
381ab64890Smrg*/
39b4ee4795Smrg/*
405efbdfc3Smrg * Copyright (c) 2000, Oracle and/or its affiliates.
41b4ee4795Smrg *
42b4ee4795Smrg * Permission is hereby granted, free of charge, to any person obtaining a
43b4ee4795Smrg * copy of this software and associated documentation files (the "Software"),
44b4ee4795Smrg * to deal in the Software without restriction, including without limitation
45b4ee4795Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
46b4ee4795Smrg * and/or sell copies of the Software, and to permit persons to whom the
47b4ee4795Smrg * Software is furnished to do so, subject to the following conditions:
48b4ee4795Smrg *
49b4ee4795Smrg * The above copyright notice and this permission notice (including the next
50b4ee4795Smrg * paragraph) shall be included in all copies or substantial portions of the
51b4ee4795Smrg * Software.
52b4ee4795Smrg *
53b4ee4795Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
54b4ee4795Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
55b4ee4795Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
56b4ee4795Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
57b4ee4795Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
58b4ee4795Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
59b4ee4795Smrg * DEALINGS IN THE SOFTWARE.
60b4ee4795Smrg */
61b4ee4795Smrg
621ab64890Smrg
631ab64890Smrg#ifdef HAVE_CONFIG_H
641ab64890Smrg#include <config.h>
651ab64890Smrg#endif
661ab64890Smrg#include "Xlibint.h"
671ab64890Smrg#include "Xlcint.h"
681ab64890Smrg
691ab64890Smrgextern XIM _XDefaultOpenIM(
701ab64890Smrg	XLCd, Display *, XrmDatabase, char *, char *
711ab64890Smrg			   );
721ab64890Smrg
731ab64890SmrgBool
74eb411b4bSmrg_XInitDefaultIM(XLCd lcd)
751ab64890Smrg{
761ab64890Smrg    if(lcd == (XLCd)NULL)
771ab64890Smrg	return False;
781ab64890Smrg
791ab64890Smrg    lcd->methods->open_im = _XDefaultOpenIM;
801ab64890Smrg    lcd->methods->register_callback = NULL;
811ab64890Smrg    lcd->methods->unregister_callback = NULL;
821ab64890Smrg    return True;
831ab64890Smrg}
841ab64890Smrg
851ab64890Smrgextern XOM _XDefaultOpenOM(
861ab64890Smrg    XLCd, Display*, XrmDatabase, _Xconst char*, _Xconst char*
871ab64890Smrg			   );
881ab64890Smrg
891ab64890SmrgBool
90eb411b4bSmrg_XInitDefaultOM(XLCd lcd)
911ab64890Smrg{
921ab64890Smrg    lcd->methods->open_om = _XDefaultOpenOM;
931ab64890Smrg    return True;
941ab64890Smrg}
95