1 /* Copyright 1992 NEC Corporation, Tokyo, Japan.
2  *
3  * Permission to use, copy, modify, distribute and sell this software
4  * and its documentation for any purpose is hereby granted without
5  * fee, provided that the above copyright notice appear in all copies
6  * and that both that copyright notice and this permission notice
7  * appear in supporting documentation, and that the name of NEC
8  * Corporation not be used in advertising or publicity pertaining to
9  * distribution of the software without specific, written prior
10  * permission.  NEC Corporation makes no representations about the
11  * suitability of this software for any purpose.  It is provided "as
12  * is" without express or implied warranty.
13  *
14  * NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
16  * NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
18  * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19  * OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20  * PERFORMANCE OF THIS SOFTWARE.
21  */
22 
23 /* sccs_id[]="%Z% NEC UNIX( PC-UX/EWS-UX ) %M% %R%.%L% %E% %U%"; */
24 /* $Id: IRwproto.h,v 1.2 2003/02/02 16:40:05 aida_s Exp $ */
25 
26 typedef struct _wReq0{
27     int Type ;
28     int namelen ;
29     char *name ;
30 } wReq0 ;
31 
32 typedef struct _wReq1{
33     BYTE type;
34     BYTE none;
35     unsigned short datalen ;
36 } wReq1 ;
37 
38 typedef struct _wReq2{
39     BYTE type;
40     BYTE none;
41     unsigned short datalen ;
42     short context ;
43 } wReq2 ;
44 
45 typedef struct _wReq3{
46     BYTE type;
47     BYTE none;
48     unsigned short datalen ;
49     short context ;
50     unsigned short buflen ;
51 } wReq3 ;
52 
53 typedef struct _wReq4{
54     BYTE type;
55     BYTE none;
56     unsigned short datalen ;
57     short context ;
58     short begin ;
59     short end ;
60     unsigned short yomilen ;
61     Ushort *yomi ;
62 } wReq4 ;
63 
64 typedef struct _wReq5{
65     BYTE type;
66     BYTE none;
67     unsigned short datalen ;
68     short context ;
69     unsigned short size ;
70     int mode ;
71 } wReq5 ;
72 
73 typedef struct _wReq6{
74     BYTE type;
75     BYTE none;
76     unsigned short datalen ;
77     short context ;
78     short number ;
79     unsigned short buflen ;
80 } wReq6 ;
81 
82 typedef struct _wReq7{
83     BYTE type;
84     BYTE none;
85     unsigned short datalen ;
86     short context ;
87     short number ;
88     short yomilen ;
89 } wReq7 ;
90 
91 typedef struct _wReq8{
92     BYTE type;
93     BYTE none;
94     unsigned short datalen ;
95     short context ;
96     short curbun ;
97     short curkouho ;
98     unsigned short size ;
99 } wReq8 ;
100 
101 typedef struct _wReq9{
102     BYTE type;
103     BYTE none;
104     unsigned short datalen ;
105     short context ;
106     short number ;
107     short kouho ;
108     short max ;
109 } wReq9 ;
110 
111 typedef struct _wReq10{
112     BYTE type;
113     BYTE none;
114     unsigned short datalen ;
115     short context ;
116     short number ;
117     int mode ;
118     short *kouho ;
119 } wReq10 ;
120 
121 typedef struct _wReq11{
122     BYTE type;
123     BYTE none;
124     unsigned short datalen ;
125     short context ;
126     short curbun ;
127     Ushort *yomi ;
128 } wReq11 ;
129 
130 typedef struct _wReq12{
131     BYTE type;
132     BYTE none;
133     unsigned short datalen ;
134     short context ;
135     char *dicname ;
136     Ushort *datainfo ;
137 } wReq12 ;
138 
139 typedef struct _wReq13{
140     BYTE type;
141     BYTE none;
142     unsigned short datalen ;
143     short context ;
144     char *dicname ;
145     Ushort *yomi ;
146     unsigned short yomilen ;
147     unsigned short kouhosize ;
148     unsigned short hinshisize ;
149 } wReq13 ;
150 
151 typedef struct _wReq14{
152     BYTE type;
153     BYTE none;
154     unsigned short datalen ;
155     int mode ;
156     short context ;
157     Ushort *yomi ;
158 } wReq14 ;
159 
160 typedef struct _wReq15{
161     BYTE type;
162     BYTE none;
163     Ushort datalen ;
164     int mode ;
165     short context ;
166     char *dicname ;
167 } wReq15 ;
168 
169 typedef struct _wReq17{
170     BYTE type;
171     BYTE none;
172     unsigned short datalen ;
173     char *extensions ;
174     char ch;
175 } wReq17 ;
176 
177 typedef struct _wReq18{
178     BYTE type;
179     BYTE none;
180     unsigned short datalen ;
181     short context ;
182     char *data ;
183     unsigned short size ;
184 } wReq18 ;
185 
186 typedef struct _wReq20{
187     BYTE type;
188     BYTE none;
189     unsigned short datalen ;
190     short context ;
191     int command ;
192     int bufsize ;
193     char *buf ;
194 } wReq20 ;
195 
196 typedef struct _wReq21{
197     BYTE type;
198     BYTE none;
199     Ushort datalen;
200     int mode;
201     short context;
202     char *dirname;
203     char *srcdic;
204     char *dstdic;
205 } wReq21 ;
206 
207 typedef union _IRwReq {
208     wReq0 type0 ;
209     wReq1 type1 ;
210     wReq2 type2 ;
211     wReq3 type3 ;
212     wReq4 type4;
213     wReq5 type5;
214     wReq6 type6 ;
215     wReq7 type7 ;
216     wReq8 type8;
217     wReq9 type9;
218     wReq10 type10 ;
219     wReq11 type11;
220     wReq12 type12 ;
221     wReq13 type13;
222     wReq14 type14 ;
223     wReq15 type15 ;
224     wReq17 type17;
225 #ifdef EXTENSION
226     wReq18 type18;
227 #endif /* EXTENSION */
228     wReq20 type20;
229     wReq21 type21;
230     BYTE Buffer[4];
231 } IRwReq ;
232 
233