Mercurial > kinput2.yaz
comparison lib/imlib/imxport.h @ 0:92745d501b9a
initial import from kinput2-v3.1
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 04:44:30 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:92745d501b9a |
---|---|
1 /* $Id: imxport.h,v 1.3 1994/05/13 08:34:17 ishisone Exp $ */ | |
2 /* | |
3 * Copyright (c) 1994 Software Research Associates, Inc. | |
4 * | |
5 * Permission to use, copy, modify, and distribute this software and its | |
6 * documentation for any purpose and without fee is hereby granted, provided | |
7 * that the above copyright notice appear in all copies and that both that | |
8 * copyright notice and this permission notice appear in supporting | |
9 * documentation, and that the name of Software Research Associates not be | |
10 * used in advertising or publicity pertaining to distribution of the | |
11 * software without specific, written prior permission. Software Research | |
12 * Associates makes no representations about the suitability of this software | |
13 * for any purpose. It is provided "as is" without express or implied | |
14 * warranty. | |
15 * | |
16 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan | |
17 */ | |
18 | |
19 #ifndef _imxport_h | |
20 #define _imxport_h | |
21 | |
22 #include "imprtype.h" | |
23 | |
24 /* | |
25 * Supported tranport definitions | |
26 */ | |
27 #ifndef NO_UNIX_TRANSPORT | |
28 #define IM_UNIX_TRANSPORT | |
29 #endif | |
30 | |
31 #ifndef NO_TCP_TRANSPORT | |
32 #define IM_TCP_TRANSPORT | |
33 #endif | |
34 | |
35 #ifndef NO_X_TRANSPORT | |
36 #define IM_X_TRANSPORT | |
37 #endif | |
38 | |
39 | |
40 /* | |
41 * IMTransport -- transport information | |
42 */ | |
43 | |
44 typedef struct _im_connection_ _tmp_IMConnection; | |
45 typedef struct { | |
46 int (*flush) _Pt_((_tmp_IMConnection *conn)); | |
47 void (*shutdown) _Pt_((_tmp_IMConnection *conn)); | |
48 } IMTransportOps; | |
49 | |
50 typedef union { | |
51 struct { | |
52 int fd; /* socket file descriptor */ | |
53 XtInputId id; /* input ID */ | |
54 } sock; | |
55 struct { | |
56 Window server; /* server communication window */ | |
57 Window client; /* client window */ | |
58 } x; | |
59 } IMTransportPriv; | |
60 | |
61 typedef struct { | |
62 IMTransportOps *ops; | |
63 IMTransportPriv priv; | |
64 } IMTransport; | |
65 | |
66 #endif /* _imxport_h */ |