XlcSL.c revision 1ab64890
11ab64890Smrg/* 21ab64890SmrgCopyright 1985, 1986, 1987, 1991, 1998 The Open Group 31ab64890Smrg 41ab64890SmrgPortions Copyright 2000 Sun Microsystems, Inc. All Rights Reserved. 51ab64890Smrg 61ab64890SmrgPermission is hereby granted, free of charge, to any person obtaining a 71ab64890Smrgcopy of this software and associated documentation files (the 81ab64890Smrg"Software"), to deal in the Software without restriction, including 91ab64890Smrgwithout limitation the rights to use, copy, modify, merge, publish, 101ab64890Smrgdistribute, sublicense, and/or sell copies of the Software, and to 111ab64890Smrgpermit persons to whom the Software is furnished to do so, subject to 121ab64890Smrgthe following conditions: The above copyright notice and this 131ab64890Smrgpermission notice shall be included in all copies or substantial 141ab64890Smrgportions of the Software. 151ab64890Smrg 161ab64890Smrg 171ab64890SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 181ab64890SmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 191ab64890SmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 201ab64890SmrgIN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE 211ab64890SmrgFOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 221ab64890SmrgCONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH 231ab64890SmrgTHE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF 241ab64890SmrgADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES. 251ab64890Smrg 261ab64890Smrg 271ab64890SmrgExcept as contained in this notice, the names of The Open Group and/or 281ab64890SmrgSun Microsystems, Inc. shall not be used in advertising or otherwise to 291ab64890Smrgpromote the sale, use or other dealings in this Software without prior 301ab64890Smrgwritten authorization from The Open Group and/or Sun Microsystems, 311ab64890SmrgInc., as applicable. 321ab64890Smrg 331ab64890Smrg 341ab64890SmrgX Window System is a trademark of The Open Group 351ab64890Smrg 361ab64890SmrgOSF/1, OSF/Motif and Motif are registered trademarks, and OSF, the OSF 371ab64890Smrglogo, LBX, X Window System, and Xinerama are trademarks of the Open 381ab64890SmrgGroup. All other trademarks and registered trademarks mentioned herein 391ab64890Smrgare the property of their respective owners. No right, title or 401ab64890Smrginterest in or to any trademark, service mark, logo or trade name of 411ab64890SmrgSun Microsystems, Inc. or its licensors is granted. 421ab64890Smrg 431ab64890Smrg*/ 441ab64890Smrg/* $XFree86$ */ 451ab64890Smrg 461ab64890Smrg#ifdef HAVE_CONFIG_H 471ab64890Smrg#include <config.h> 481ab64890Smrg#endif 491ab64890Smrg#include "Xlibint.h" 501ab64890Smrg#include "Xlcint.h" 511ab64890Smrg 521ab64890Smrgextern XIM _XDefaultOpenIM( 531ab64890Smrg XLCd, Display *, XrmDatabase, char *, char * 541ab64890Smrg ); 551ab64890Smrg 561ab64890SmrgBool 571ab64890Smrg_XInitDefaultIM(lcd) 581ab64890SmrgXLCd lcd; 591ab64890Smrg{ 601ab64890Smrg if(lcd == (XLCd)NULL) 611ab64890Smrg return False; 621ab64890Smrg 631ab64890Smrg lcd->methods->open_im = _XDefaultOpenIM; 641ab64890Smrg lcd->methods->register_callback = NULL; 651ab64890Smrg lcd->methods->unregister_callback = NULL; 661ab64890Smrg return True; 671ab64890Smrg} 681ab64890Smrg 691ab64890Smrgextern XOM _XDefaultOpenOM( 701ab64890Smrg XLCd, Display*, XrmDatabase, _Xconst char*, _Xconst char* 711ab64890Smrg ); 721ab64890Smrg 731ab64890SmrgBool 741ab64890Smrg_XInitDefaultOM(lcd) 751ab64890Smrg XLCd lcd; 761ab64890Smrg{ 771ab64890Smrg lcd->methods->open_om = _XDefaultOpenOM; 781ab64890Smrg return True; 791ab64890Smrg} 80