1 /* 2 * $Id: msg.h,v 1.5 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 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_MSG_H 34 #define WNN_MSG_H 35 36 #ifdef HAVE_CONFIG_H 37 #include <config.h> 38 #endif 39 40 #ifdef HAVE_SYS_PARAM_H 41 #include <sys/param.h> 42 #endif 43 44 struct msg_bd 45 { 46 int msg_id; 47 char *msg; 48 }; 49 50 struct msg_cat 51 { 52 char lang[32]; 53 char name[64]; 54 char nlspath[MAXPATHLEN]; 55 int msg_cnt; 56 struct msg_cat *nextp; 57 struct msg_bd *msg_bd; 58 /*int encoding; */ 59 }; 60 61 #define DEF_MSG "Message not found.\n" 62 /* 63 #define DEF_LANG "C" 64 */ 65 #define DEF_LANG "ja_JP" 66 67 extern struct msg_cat *msg_open (); 68 extern char *msg_get (); 69 extern void msg_close (); 70 71 #endif /* WNN_MSG_H */ 72