1 /******************************************************************
2 
3          Copyright 1994, 1995 by Sun Microsystems, Inc.
4          Copyright 1993, 1994 by Hewlett-Packard Company
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
9 that both that copyright notice and this permission notice appear
10 in supporting documentation, and that the name of Sun Microsystems, Inc.
11 and Hewlett-Packard not be used in advertising or publicity pertaining to
12 distribution of the software without specific, written prior permission.
13 Sun Microsystems, Inc. and Hewlett-Packard make no representations about
14 the suitability of this software for any purpose.  It is provided "as is"
15 without express or implied warranty.
16 
17 SUN MICROSYSTEMS INC. AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL
18 WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
19 WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
20 SUN MICROSYSTEMS, INC. AND HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY
21 SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
22 RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
23 CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
24 IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 
26   Author: Hidetoshi Tajima(tajima@Eng.Sun.COM) Sun Microsystems, Inc.
27 
28     This version tidied and debugged by Steve Underwood May 1999
29 
30 ******************************************************************/
31 
32 #include <X11/Xlib.h>
33 #include "IMdkit.h"
34 
35 /* Public Function */
IMForwardEvent(XIMS ims,XPointer call_data)36 void IMForwardEvent (XIMS ims, XPointer call_data)
37 {
38     (ims->methods->forwardEvent) (ims, call_data);
39 }
40 
IMCommitString(XIMS ims,XPointer call_data)41 void IMCommitString (XIMS ims, XPointer call_data)
42 {
43     (ims->methods->commitString) (ims, call_data);
44 }
45 
IMCallCallback(XIMS ims,XPointer call_data)46 int IMCallCallback (XIMS ims, XPointer call_data)
47 {
48     return (ims->methods->callCallback) (ims, call_data);
49 }
50 
IMPreeditStart(XIMS ims,XPointer call_data)51 int IMPreeditStart (XIMS ims, XPointer call_data)
52 {
53     return (ims->methods->preeditStart) (ims, call_data);
54 }
55 
IMPreeditEnd(XIMS ims,XPointer call_data)56 int IMPreeditEnd (XIMS ims, XPointer call_data)
57 {
58     return (ims->methods->preeditEnd) (ims, call_data);
59 }
60 
IMSyncXlib(XIMS ims,XPointer call_data)61 int IMSyncXlib(XIMS ims, XPointer call_data)
62 {
63     ims->sync = True;
64     return (ims->methods->syncXlib) (ims, call_data);
65 }
66