XimTrX.h revision 61b2299d
1/* $Xorg: XimTrX.h,v 1.3 2000/08/17 19:45:05 cpqbld Exp $ */
2/******************************************************************
3
4           Copyright 1992 by Sun Microsystems, Inc.
5           Copyright 1992, 1993, 1994 by FUJITSU LIMITED
6
7Permission to use, copy, modify, distribute, and sell this software
8and its documentation for any purpose is hereby granted without fee,
9provided that the above copyright notice appear in all copies and
10that both that copyright notice and this permission notice appear
11in supporting documentation, and that the name of Sun Microsystems, Inc.
12and FUJITSU LIMITED not be used in advertising or publicity pertaining to
13distribution of the software without specific, written prior permission.
14Sun Microsystems, Inc. and FUJITSU LIMITED makes no representations about
15the suitability of this software for any purpose.
16It is provided "as is" without express or implied warranty.
17
18Sun Microsystems Inc. AND FUJITSU LIMITED DISCLAIMS ALL WARRANTIES WITH
19REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20AND FITNESS, IN NO EVENT SHALL Sun Microsystems, Inc. AND FUJITSU LIMITED
21BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
22WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
23ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
24IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25
26  Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
27          Takashi Fujiwara     FUJITSU LIMITED
28                               fujiwara@a80.tech.yk.fujitsu.co.jp
29
30******************************************************************/
31/* $XFree86$ */
32
33#ifndef _XIMTRX_H
34#define _XIMTRX_H
35
36typedef struct _XIntrCallbackRec	*XIntrCallbackPtr;
37
38typedef struct _XIntrCallbackRec {
39    Bool		 (*func)(
40				 Xim, INT16, XPointer, XPointer
41);
42    XPointer		 call_data;
43    XIntrCallbackPtr	 next;
44} XIntrCallbackRec ;
45
46typedef struct _XSpecRec {
47    XIntrCallbackPtr	 intr_cb;
48    Atom		 imconnectid;
49    Atom		 improtocolid;
50    Atom		 immoredataid;
51    Window		 lib_connect_wid;
52    Window		 ims_connect_wid;
53    XPointer		 ev;
54    CARD32		 major_code;
55    CARD32		 minor_code;
56    CARD32		 BoundarySize;
57} XSpecRec;
58
59#define _XIM_PROTOCOL		"_XIM_PROTOCOL"
60#define _XIM_XCONNECT		"_XIM_XCONNECT"
61#define _XIM_MOREDATA		"_XIM_MOREDATA"
62
63#define MAJOR_TRANSPORT_VERSION         0
64#define MINOR_TRANSPORT_VERSION         0
65
66#endif /* _XIMTRX_H */
67