iconv-internal.h revision 258398
1218885Sdim/*- 2218885Sdim * Copyright (c) 2013 Peter Wemm 3218885Sdim * All rights reserved. 4218885Sdim * 5218885Sdim * Redistribution and use in source and binary forms, with or without 6218885Sdim * modification, are permitted provided that the following conditions 7218885Sdim * are met: 8218885Sdim * 1. Redistributions of source code must retain the above copyright 9218885Sdim * notice, this list of conditions and the following disclaimer. 10218885Sdim * 2. Redistributions in binary form must reproduce the above copyright 11218885Sdim * notice, this list of conditions and the following disclaimer in the 12218885Sdim * documentation and/or other materials provided with the distribution. 13218885Sdim * 14218885Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15218885Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16218885Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17218885Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18218885Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19218885Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20249423Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21218885Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22218885Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23218885Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24218885Sdim * SUCH DAMAGE. 25218885Sdim * 26218885Sdim * $FreeBSD: stable/10/lib/libc/iconv/iconv-internal.h 258398 2013-11-20 20:24:59Z peter $ 27218885Sdim */ 28218885Sdim 29218885Sdim/* 30218885Sdim * Interal prototypes for our back-end functions. 31218885Sdim */ 32218885Sdimsize_t __bsd___iconv(iconv_t, const char **, size_t *, char **, 33218885Sdim size_t *, __uint32_t, size_t *); 34218885Sdimvoid __bsd___iconv_free_list(char **, size_t); 35218885Sdimint __bsd___iconv_get_list(char ***, size_t *, __iconv_bool); 36218885Sdimsize_t __bsd_iconv(iconv_t, const char ** __restrict, 37218885Sdim size_t * __restrict, char ** __restrict, 38218885Sdim size_t * __restrict); 39218885Sdimconst char *__bsd_iconv_canonicalize(const char *); 40218885Sdimint __bsd_iconv_close(iconv_t); 41218885Sdimiconv_t __bsd_iconv_open(const char *, const char *); 42218885Sdimint __bsd_iconv_open_into(const char *, const char *, iconv_allocation_t *); 43218885Sdimvoid __bsd_iconv_set_relocation_prefix(const char *, const char *); 44218885Sdimint __bsd_iconvctl(iconv_t, int, void *); 45218885Sdimvoid __bsd_iconvlist(int (*) (unsigned int, const char * const *, void *), void *); 46218885Sdim