xref: /titanic_51/usr/src/lib/iconv_modules/utf-8/common/ace.h (revision 91e1e26ac6a73ce959289cf7d3d96c4baedbe0b8)
1*91e1e26aSAlexander Pyhalov /*
2*91e1e26aSAlexander Pyhalov  * CDDL HEADER START
3*91e1e26aSAlexander Pyhalov  *
4*91e1e26aSAlexander Pyhalov  * The contents of this file are subject to the terms of the
5*91e1e26aSAlexander Pyhalov  * Common Development and Distribution License (the "License").
6*91e1e26aSAlexander Pyhalov  * You may not use this file except in compliance with the License.
7*91e1e26aSAlexander Pyhalov  *
8*91e1e26aSAlexander Pyhalov  * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
9*91e1e26aSAlexander Pyhalov  * or http://www.opensolaris.org/os/licensing.
10*91e1e26aSAlexander Pyhalov  * See the License for the specific language governing permissions
11*91e1e26aSAlexander Pyhalov  * and limitations under the License.
12*91e1e26aSAlexander Pyhalov  *
13*91e1e26aSAlexander Pyhalov  * When distributing Covered Code, include this CDDL HEADER in each
14*91e1e26aSAlexander Pyhalov  * file and include the License file at src/OPENSOLARIS.LICENSE.
15*91e1e26aSAlexander Pyhalov  * If applicable, add the following below this CDDL HEADER, with the
16*91e1e26aSAlexander Pyhalov  * fields enclosed by brackets "[]" replaced with your own identifying
17*91e1e26aSAlexander Pyhalov  * information: Portions Copyright [yyyy] [name of copyright owner]
18*91e1e26aSAlexander Pyhalov  *
19*91e1e26aSAlexander Pyhalov  * CDDL HEADER END
20*91e1e26aSAlexander Pyhalov  */
21*91e1e26aSAlexander Pyhalov /*
22*91e1e26aSAlexander Pyhalov  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
23*91e1e26aSAlexander Pyhalov  * Use is subject to license terms.
24*91e1e26aSAlexander Pyhalov  */
25*91e1e26aSAlexander Pyhalov 
26*91e1e26aSAlexander Pyhalov #ifndef	_ACE_H
27*91e1e26aSAlexander Pyhalov #define	_ACE_H
28*91e1e26aSAlexander Pyhalov 
29*91e1e26aSAlexander Pyhalov #include <sys/isa_defs.h>
30*91e1e26aSAlexander Pyhalov 
31*91e1e26aSAlexander Pyhalov #ifdef __cplusplus
32*91e1e26aSAlexander Pyhalov extern "C" {
33*91e1e26aSAlexander Pyhalov #endif
34*91e1e26aSAlexander Pyhalov 
35*91e1e26aSAlexander Pyhalov #ifdef  _LP64
36*91e1e26aSAlexander Pyhalov #define ICV_LIBIDNKITPATH	"/usr/lib/64/libidnkit.so.1"
37*91e1e26aSAlexander Pyhalov #else
38*91e1e26aSAlexander Pyhalov #define ICV_LIBIDNKITPATH	"/usr/lib/libidnkit.so.1"
39*91e1e26aSAlexander Pyhalov #endif
40*91e1e26aSAlexander Pyhalov 
41*91e1e26aSAlexander Pyhalov typedef struct _ace_state_t {
42*91e1e26aSAlexander Pyhalov 	void *libidnkit;
43*91e1e26aSAlexander Pyhalov 	idn_result_t (*idn_function)(int, const char *, char *, size_t);
44*91e1e26aSAlexander Pyhalov 	uchar_t *ib;
45*91e1e26aSAlexander Pyhalov 	size_t ibl;
46*91e1e26aSAlexander Pyhalov 	size_t iblconsumed;
47*91e1e26aSAlexander Pyhalov 	uchar_t *ob;
48*91e1e26aSAlexander Pyhalov 	size_t obl;
49*91e1e26aSAlexander Pyhalov 	size_t oblremaining;
50*91e1e26aSAlexander Pyhalov } ace_state_t;
51*91e1e26aSAlexander Pyhalov 
52*91e1e26aSAlexander Pyhalov #ifdef __cplusplus
53*91e1e26aSAlexander Pyhalov }
54*91e1e26aSAlexander Pyhalov #endif
55*91e1e26aSAlexander Pyhalov 
56*91e1e26aSAlexander Pyhalov #endif	/* _ACE_H */
57