comparison include/cconv.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: cconv.h,v 10.2 1998/12/28 07:33:30 ishisone Exp $ */
2 /*
3 * cconv.h -- header file for cconv library
4 * version 10.1
5 */
6
7 /*
8 * Copyright (c) 1988 Software Research Associates, Inc.
9 *
10 * Permission to use, copy, modify, and distribute this software and its
11 * documentation for any purpose and without fee is hereby granted, provided
12 * that the above copyright notice appear in all copies and that both that
13 * copyright notice and this permission notice appear in supporting
14 * documentation, and that the name of Software Research Associates not be
15 * used in advertising or publicity pertaining to distribution of the
16 * software without specific, written prior permission. Software Research
17 * Associates makes no representations about the suitability of this software
18 * for any purpose. It is provided "as is" without express or implied
19 * warranty.
20 *
21 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
22 * ishisone@sra.co.jp
23 */
24
25 #ifndef WCHAR_DEFINED
26 #define WCHAR_DEFINED
27 typedef unsigned short wchar;
28 #endif
29
30 typedef struct _ccRule *ccRule;
31 typedef struct _ccBuf *ccBuf;
32
33 /* CCDEFPATH -- default ccdef file directory */
34 #ifndef CCDEFPATH
35 #define CCDEFPATH "/usr/lib/X11/ccdef/"
36 #endif
37
38 #ifdef __STDC__
39 extern ccRule ccParseRule(char *, void (*)());
40 extern ccBuf ccCreateBuf(ccRule, int, char *[], int, void (*)(), void (*)(),
41 void (*)(), int (*)(), void (*)(), void (*)(),
42 caddr_t);
43 extern void ccFreeRule(ccRule);
44 extern void ccDestroyBuf(ccBuf);
45 extern int ccConvchar(ccBuf, XKeyPressedEvent *);
46 extern int ccGetMode(ccBuf);
47 extern wchar *ccGetModePrompt(ccBuf);
48 extern ccRule ccGetRule(ccBuf);
49 extern void ccContextAppend(ccBuf, int);
50 extern void ccContextDelete(ccBuf);
51 extern void ccContextClear(ccBuf);
52 extern void ccContextSet(ccBuf, wchar *);
53 extern void ccContextGet(ccBuf, wchar *);
54
55 extern ccBuf ccInit(char *, int, void (*)(), void (*)(), void (*)(),
56 int (*)(), void (*)(), char **, int);
57 extern void ccTerminate(ccBuf);
58 #else
59 extern ccRule ccParseRule();
60 extern ccBuf ccCreateBuf();
61 extern void ccFreeRule();
62 extern void ccDestroyBuf();
63 extern int ccConvchar();
64 extern int ccGetMode();
65 extern wchar *ccGetModePrompt();
66 extern ccRule ccGetRule();
67 extern void ccContextAppend();
68 extern void ccContextDelete();
69 extern void ccContextClear();
70 extern void ccContextSet();
71 extern void ccContextGet();
72 extern ccBuf ccInit();
73 extern void ccTerminate();
74 #endif