1155835Sume/*- 2155835Sume * Copyright (c) 2006 Hajimu UMEMOTO <ume@FreeBSD.org> 3155835Sume * All rights reserved. 4155835Sume * 5155835Sume * Redistribution and use in source and binary forms, with or without 6155835Sume * modification, are permitted provided that the following conditions 7155835Sume * are met: 8155835Sume * 1. Redistributions of source code must retain the above copyright 9155835Sume * notice, this list of conditions and the following disclaimer. 10155835Sume * 2. Redistributions in binary form must reproduce the above copyright 11155835Sume * notice, this list of conditions and the following disclaimer in the 12155835Sume * documentation and/or other materials provided with the distribution. 13155835Sume * 14155835Sume * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15155835Sume * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16155835Sume * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17155835Sume * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18155835Sume * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19155835Sume * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20155835Sume * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21155835Sume * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22155835Sume * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23155835Sume * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24155835Sume * SUCH DAMAGE. 25155835Sume * 26155835Sume * $FreeBSD$ 27155835Sume */ 28155835Sume 29155835Sume#ifndef _ICONV_H_ 30155835Sume#define _ICONV_H_ 31155835Sume 32155835Sumetypedef void *iconv_t; 33155835Sumetypedef size_t dl_iconv_t(iconv_t, const char **, size_t *, char **, size_t *); 34155835Sumetypedef int dl_iconv_close_t(iconv_t); 35155835Sume 36155835Sumeextern iconv_t dl_iconv_open(const char *, const char *); 37155835Sumeextern dl_iconv_t *dl_iconv; 38155835Sumeextern dl_iconv_close_t *dl_iconv_close; 39155835Sume 40155835Sume#define iconv_open dl_iconv_open 41155835Sume#define iconv dl_iconv 42155835Sume#define iconv_close dl_iconv_close 43155835Sume 44155835Sume#endif /* !_ICONV_H_ */ 45