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