0
|
1 /*
|
|
2 * $Id: do_xjplib.h,v 1.2 2001/06/14 18:16:15 ura Exp $
|
|
3 */
|
|
4
|
|
5 /*
|
|
6 * FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
7 * This file is part of FreeWnn.
|
|
8 *
|
|
9 * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
10 * Copyright 1991 by Massachusetts Institute of Technology
|
|
11 *
|
|
12 * Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
|
|
13 *
|
|
14 * This program is free software; you can redistribute it and/or modify
|
|
15 * it under the terms of the GNU General Public License as published by
|
|
16 * the Free Software Foundation; either version 2, or (at your option)
|
|
17 * any later version.
|
|
18 *
|
|
19 * This program is distributed in the hope that it will be useful,
|
|
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
22 * GNU General Public License for more details.
|
|
23 *
|
|
24 * You should have received a copy of the GNU General Public License
|
|
25 * along with GNU Emacs; see the file COPYING. If not, write to the
|
|
26 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
27 *
|
|
28 * Commentary:
|
|
29 *
|
|
30 * Change log:
|
|
31 *
|
|
32 * Last modified date: 8,Feb.1999
|
|
33 *
|
|
34 * Code:
|
|
35 *
|
|
36 */
|
|
37
|
|
38 #include <stdio.h>
|
|
39 #include "commonhd.h"
|
|
40 #include "sdefine.h"
|
|
41 #include "xim.h"
|
|
42 #include "sheader.h"
|
|
43 #include "proto.h"
|
|
44 #include "ext.h"
|
|
45
|
|
46 #ifdef XJPLIB
|
|
47 typedef struct _XJpClientRec
|
|
48 {
|
|
49 long dispmode;
|
|
50
|
|
51
|
|
52 unsigned char c_data[128];
|
|
53 Window w;
|
|
54 unsigned long mask;
|
|
55 long p_width, p_height;
|
|
56 long x, y;
|
|
57 long width, height;
|
|
58 unsigned long fg, bg;
|
|
59 long bp;
|
|
60 long status_x, status_y;
|
|
61 XIMClientRec *xim_client;
|
|
62 #ifdef XJPLIB_DIRECT
|
|
63 int direct_fd;
|
|
64 #endif /* XJPLIB_DIRECT */
|
|
65 int ref_count;
|
|
66 char escape[4][4];
|
|
67 struct _XJpClientRec *next;
|
|
68 }
|
|
69 XJpClientRec;
|
|
70
|
|
71 typedef struct _XJpInputRec
|
|
72 {
|
|
73 Window w;
|
|
74 XJpClientRec *pclient;
|
|
75 int save_event;
|
|
76 XKeyEvent ev;
|
|
77 struct _XJpInputRec *next;
|
|
78 }
|
|
79 XJpInputRec;
|
|
80
|
|
81 #define XJPLIB_PORT_IN (0x9494)
|
|
82 #define UNIX_PATH "/tmp/xwnmo.V2"
|
|
83 #define UNIX_ACPT 0
|
|
84 #define INET_ACPT 1
|
|
85
|
|
86 #define XJP_OPEN 1
|
|
87 #define XJP_CLOSE 2
|
|
88 #define XJP_BEGIN 3
|
|
89 #define XJP_END 4
|
|
90 #define XJP_VISIBLE 5
|
|
91 #define XJP_INVISIBLE 6
|
|
92 #define XJP_CHANGE 7
|
|
93 #define XJP_MOVE 8
|
|
94 #define XJP_INDICATOR 9
|
|
95
|
|
96 #define XJP_WINDOWID 1
|
|
97 #define XJP_ERROR -1
|
|
98
|
|
99 #define XJP_UNDER 0
|
|
100 #define XJP_XY 1
|
|
101 #define XJP_ROOT 2
|
|
102
|
|
103 #define XJP_PWIDTH 0x00000001L
|
|
104 #define XJP_PHEIGHT 0x00000002L
|
|
105 #define XJP_X 0x00000004L
|
|
106 #define XJP_Y 0x00000008L
|
|
107 #define XJP_WIDTH 0x00000010L
|
|
108 #define XJP_HEIGHT 0x00000020L
|
|
109 #define XJP_FG 0x00000040L
|
|
110 #define XJP_BG 0x00000080L
|
|
111 #define XJP_BP 0x00000100L
|
|
112 #define XJP_FONTS 0x00000200L
|
|
113 #define XJP_STATUS 0x00000400L
|
|
114
|
|
115 #define XJP_F_FRONTEND_END 0
|
|
116 #define XJP_F_FRONTEND_ERR_END 1
|
|
117 #define XJP_F_JSERVER_DISCONNECT 2
|
|
118
|
|
119 #define XJP_F_OPEN_BAD_WID 3
|
|
120 #define XJP_F_OPEN_BAD_SZ 4
|
|
121 #define XJP_F_OPEN_BAD_FN 5
|
|
122 #define XJP_F_OPEN_BAD_DM 6
|
|
123 #define XJP_F_OPEN_NOT_WIN 7
|
|
124 #define XJP_F_OPEN_NOT_SUPPORT 8
|
|
125
|
|
126 #define XJP_F_CLOSE_BAD_CL 9
|
|
127
|
|
128 #define XJP_F_BEGIN_BAD_CL 10
|
|
129 #define XJP_F_BEGIN_BAD_WID 11
|
|
130
|
|
131 #define XJP_F_END_BAD_CL 12
|
|
132 #define XJP_F_END_BAD_WID 13
|
|
133
|
|
134 #define XJP_F_VISIBLE_BAD_CL 14
|
|
135
|
|
136 #define XJP_F_INVISIBLE_BAD_CL 15
|
|
137
|
|
138 #define XJP_F_CHANGE_BAD_CL 16
|
|
139 #define XJP_F_CHANGE_BAD_SZ 17
|
|
140 #define XJP_F_CHANGE_NOT_WIN 18
|
|
141 #endif
|