1 /*
2  *  $Id: demcom.h,v 1.6 2005/04/10 15:26:37 aonoto 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 Kyoto University Research Institute for Mathematical Sciences
10  *                 1987, 1988, 1989, 1990, 1991, 1992
11  * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
12  * Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
13  * Copyright FreeWnn Project 1999, 2000, 2001
14  *
15  * Maintainer:  FreeWnn Project   <freewnn@tomo.gr.jp>
16  *
17  * This library is free software; you can redistribute it and/or
18  * modify it under the terms of the GNU Lesser General Public
19  * License as published by the Free Software Foundation; either
20  * version 2 of the License, or (at your option) any later version.
21  *
22  * This library is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25  * Lesser General Public License for more details.
26  *
27  * You should have received a copy of the GNU Lesser General Public
28  * License along with this library; if not, write to the
29  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
30  * Boston, MA 02111-1307, USA.
31  */
32 
33 #ifndef WNN_DEMCOM_H
34 #define WNN_DEMCOM_H
35 
36 /*
37         demcom.h
38         entry functions definitions
39 */
40 
41 /*
42  *      Daemon Commands
43  */
44 #define JS_VERSION      0x00    /* changing this will break protocol version check */
45 #define JS_OPEN         0x01
46 /*      #define JS_OPEN_IN      0x02    */
47 #define JS_CLOSE        0x03
48 #define JS_CONNECT      0x05
49 #define JS_DISCONNECT   0x06
50 #define JS_ENV_EXIST    0x07
51 #define JS_ENV_STICKY   0x08
52 #define JS_ENV_UN_STICKY        0x09
53 
54 
55 #define JS_KANREN       0x11
56 #define JS_KANTAN_SHO   0x12
57 #define JS_KANZEN_SHO   0x13
58 #define JS_KANTAN_DAI   0x14
59 #define JS_KANZEN_DAI   0x15
60 #define JS_HINDO_SET    0x18
61 
62 
63 #define JS_DIC_ADD      0x21
64 #define JS_DIC_DELETE   0x22
65 #define JS_DIC_USE      0x23
66 #define JS_DIC_LIST     0x24
67 #define JS_DIC_INFO     0x25
68 
69 #define JS_FUZOKUGO_SET 0x29
70 #define JS_FUZOKUGO_GET 0x30
71 
72 
73 #define JS_WORD_ADD     0x31
74 #define JS_WORD_DELETE  0x32
75 #define JS_WORD_SEARCH  0x33
76 #define JS_WORD_SEARCH_BY_ENV   0x34
77 #define JS_WORD_INFO    0x35
78 #define JS_WORD_COMMENT_SET 0x36
79 
80 #define JS_PARAM_SET    0x41
81 #define JS_PARAM_GET    0x42
82 
83 #define JS_MKDIR        0x51
84 #define JS_ACCESS       0x52
85 #define JS_WHO          0x53
86 #define JS_ENV_LIST     0x55
87 #define JS_FILE_LIST_ALL        0x56
88 #define JS_DIC_LIST_ALL 0x57
89 
90 #define JS_FILE_READ    0x61
91 #define JS_FILE_WRITE   0x62
92 #define JS_FILE_SEND    0x63
93 #define JS_FILE_RECEIVE 0x64
94 
95 #define JS_HINDO_FILE_CREATE    0x65
96 #define JS_DIC_FILE_CREATE      0x66
97 #define JS_FILE_REMOVE  0x67
98 
99 #define JS_FILE_LIST    0x68
100 #define JS_FILE_INFO    0x69
101 #define JS_FILE_LOADED  0x6A
102 #define JS_FILE_LOADED_LOCAL    0x6B
103 #define JS_FILE_DISCARD 0x6C
104 #define JS_FILE_COMMENT_SET 0x6D
105 #define JS_FILE_PASSWORD_SET 0x6E       /* 89/9/8 */
106 
107 #define JS_FILE_STAT    0x6F
108 #define JS_KILL         0x70
109 
110 #define JS_HINDO_FILE_CREATE_CLIENT     0x71
111 #define JS_HINSI_LIST                   0x72
112 #define JS_HINSI_NAME   0x73
113 #define JS_HINSI_NUMBER 0x74
114 #define JS_HINSI_DICTS  0x75
115 #define JS_HINSI_TABLE_SET 0x76
116 
117 
118 #endif /* WNN_DEMCOM_H */
119