2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* XlcPubI.h 1.1 - Fujitsu source for CDEnext 95/11/06 20:32:05 */
24 /* $XConsortium: _fallcPubI.h /main/1 1996/04/08 15:17:59 cde-fuj $ */
26 * Copyright 1992, 1993 by TOSHIBA Corp.
28 * Permission to use, copy, modify, and distribute this software and its
29 * documentation for any purpose and without fee is hereby granted, provided
30 * that the above copyright notice appear in all copies and that both that
31 * copyright notice and this permission notice appear in supporting
32 * documentation, and that the name of TOSHIBA not be used in advertising
33 * or publicity pertaining to distribution of the software without specific,
34 * written prior permission. TOSHIBA make no representations about the
35 * suitability of this software for any purpose. It is provided "as is"
36 * without express or implied warranty.
38 * TOSHIBA DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40 * TOSHIBA BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
46 * Author: Katsuhisa Yano TOSHIBA Corp.
47 * mopi@osa.ilab.toshiba.co.jp
50 #ifndef _XLCPUBLICI_H_
51 #define _XLCPUBLICI_H_
53 #include "_fallcPublic.h"
55 #define XLC_PUBLIC(lcd, x) (((XLCdPublic) lcd->core)->pub.x)
56 #define XLC_PUBLIC_PART(lcd) (&(((XLCdPublic) lcd->core)->pub))
57 #define XLC_PUBLIC_METHODS(lcd) (&(((XLCdPublicMethods) lcd->methods)->pub))
63 typedef struct _XLCdPublicMethodsRec *XLCdPublicMethods;
65 typedef XLCd (*XlcPubCreateProc)(
66 #if NeedFunctionPrototypes
68 XLCdMethods /* methods */
72 typedef Bool (*XlcPubInitializeProc)(
73 #if NeedFunctionPrototypes
78 typedef void (*XlcPubDestroyProc)(
79 #if NeedFunctionPrototypes
84 typedef char* (*XlcPubGetValuesProc)(
85 #if NeedFunctionPrototypes
87 XlcArgList /* args */,
92 typedef void (*XlcPubGetResourceProc)(
93 #if NeedFunctionPrototypes
102 typedef struct _XLCdPublicMethodsPart {
103 XLCdPublicMethods superclass;
104 XlcPubCreateProc create;
105 XlcPubInitializeProc initialize;
106 XlcPubDestroyProc destroy;
107 XlcPubGetValuesProc get_values;
108 XlcPubGetResourceProc get_resource;
109 } XLCdPublicMethodsPart;
111 typedef struct _XLCdPublicMethodsRec {
113 XLCdPublicMethodsPart pub;
114 } XLCdPublicMethodsRec;
120 typedef struct _XLCdPublicPart {
121 char *siname; /* for _fallcMapOSLocaleName() */
122 char *language; /* language part of locale name */
123 char *territory; /* territory part of locale name */
124 char *codeset; /* codeset part of locale name */
125 char *encoding_name; /* encoding name */
126 int mb_cur_max; /* ANSI C MB_CUR_MAX */
127 Bool is_state_depend; /* state-depend encoding */
128 char *default_string; /* for falDefaultString() */
132 typedef struct _XLCdPublicRec {
135 } XLCdPublicRec, *XLCdPublic;
137 extern XLCdMethods _fallcPublicMethods;
141 extern XLCd _fallcCreateLC(
142 #if NeedFunctionPrototypes
144 XLCdMethods /* methods */
148 extern void _fallcDestroyLC(
149 #if NeedFunctionPrototypes
154 extern Bool _fallcParseCharSet(
155 #if NeedFunctionPrototypes
156 XlcCharSet /* charset */
160 extern XlcCharSet _fallcCreateDefaultCharSet(
161 #if NeedFunctionPrototypes
163 char* /* control_sequence */
167 extern XlcCharSet _fallcAddCT(
168 #if NeedFunctionPrototypes
170 char* /* control_sequence */
174 extern XrmMethods _falrmDefaultInitParseInfo(
175 #if NeedFunctionPrototypes
177 XPointer* /* state */
181 extern int _falmbTextPropertyToTextList(
182 #if NeedFunctionPrototypes
185 XTextProperty* /* text_prop */,
186 char*** /* list_ret */,
191 extern int _falwcTextPropertyToTextList(
192 #if NeedFunctionPrototypes
195 XTextProperty* /* text_prop */,
196 wchar_t*** /* list_ret */,
201 extern int _falmbTextListToTextProperty(
202 #if NeedFunctionPrototypes
207 XICCEncodingStyle /* style */,
208 XTextProperty* /* text_prop */
212 extern int _falwcTextListToTextProperty(
213 #if NeedFunctionPrototypes
216 wchar_t** /* list */,
218 XICCEncodingStyle /* style */,
219 XTextProperty* /* text_prop */
223 extern void _falwcFreeStringList(
224 #if NeedFunctionPrototypes
230 extern int _fallcResolveLocaleName(
231 #if NeedFunctionPrototypes
233 char* /* full_name */,
234 char* /* language */,
235 char* /* territory */,
240 extern int _fallcResolveDBName(
241 #if NeedFunctionPrototypes
243 char* /* file_name */
247 extern int _fallcResolveI18NPath(
248 #if NeedFunctionPrototypes
249 char* /* path_name */
253 extern XPointer _fallcCreateLocaleDataBase(
254 #if NeedFunctionPrototypes
259 extern void _fallcDestroyLocaleDataBase(
260 #if NeedFunctionPrototypes
265 extern void _fallcGetLocaleDataBase(
266 #if NeedFunctionPrototypes
268 char* /* category */,
277 #endif /* _XLCPUBLICI_H_ */