upload tizen2.0 source
[framework/uifw/xorg/lib/libx11.git] / modules / im / ximcp / imImSw.c
1 /******************************************************************
2
3           Copyright 1992, 1993 by FUJITSU LIMITED
4           Copyright 1993 by Digital Equipment Corporation
5
6 Permission to use, copy, modify, distribute, and sell this software
7 and its documentation for any purpose is hereby granted without fee,
8 provided that the above copyright notice appear in all copies and that
9 both that copyright notice and this permission notice appear in
10 supporting documentation, and that the name of FUJITSU LIMITED and
11 Digital Equipment Corporation not be used in advertising or publicity
12 pertaining to distribution of the software without specific, written
13 prior permission.  FUJITSU LIMITED and Digital Equipment Corporation
14 makes no representations about the suitability of this software for
15 any purpose.  It is provided "as is" without express or implied
16 warranty.
17
18 FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION DISCLAIM ALL
19 WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
20 WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
21 FUJITSU LIMITED AND DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR
22 ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
23 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
24 IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
26 THIS SOFTWARE.
27
28   Author:    Takashi Fujiwara     FUJITSU LIMITED
29                                   fujiwara@a80.tech.yk.fujitsu.co.jp
30   Modifier:  Franky Ling          Digital Equipment Corporation
31                                   frankyling@hgrd01.enet.dec.com
32
33 ******************************************************************/
34
35 #ifdef HAVE_CONFIG_H
36 #include <config.h>
37 #endif
38 #include "Xlibint.h"
39 #include "Xlcint.h"
40 #include "Ximint.h"
41 #include "XimImSw.h"
42
43 Private Bool
44 _XimCheckIfDefault(
45     Xim         im)
46 {
47     return(True);
48 }
49
50 XimImsportSW _XimImSportRec[] = {
51     { _XimCheckIfLocalProcessing, _XimLocalOpenIM, _XimLocalIMFree },
52     { _XimCheckIfThaiProcessing,        _XimThaiOpenIM,  _XimThaiIMFree },
53     { _XimCheckIfDefault,         _XimProtoOpenIM, _XimProtoIMFree },
54     { NULL,                       NULL,          NULL },
55 };