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