1c4f02a89SMax Khon /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 35e53a4f9SPedro F. Giffuni * 4c4f02a89SMax Khon * Copyright (c) 2003 Ryuichiro Imura 5c4f02a89SMax Khon * All rights reserved. 6c4f02a89SMax Khon * 7c4f02a89SMax Khon * Redistribution and use in source and binary forms, with or without 8c4f02a89SMax Khon * modification, are permitted provided that the following conditions 9c4f02a89SMax Khon * are met: 10c4f02a89SMax Khon * 1. Redistributions of source code must retain the above copyright 11c4f02a89SMax Khon * notice, this list of conditions and the following disclaimer. 12c4f02a89SMax Khon * 2. Redistributions in binary form must reproduce the above copyright 13c4f02a89SMax Khon * notice, this list of conditions and the following disclaimer in the 14c4f02a89SMax Khon * documentation and/or other materials provided with the distribution. 15c4f02a89SMax Khon * 16c4f02a89SMax Khon * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17c4f02a89SMax Khon * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18c4f02a89SMax Khon * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19c4f02a89SMax Khon * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20c4f02a89SMax Khon * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21c4f02a89SMax Khon * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22c4f02a89SMax Khon * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23c4f02a89SMax Khon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24c4f02a89SMax Khon * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25c4f02a89SMax Khon * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26c4f02a89SMax Khon * SUCH DAMAGE. 27c4f02a89SMax Khon */ 28c4f02a89SMax Khon 29c4f02a89SMax Khon #ifndef _KICONV_QUIRKS_H_ 30c4f02a89SMax Khon #define _KICONV_QUIRKS_H_ 31c4f02a89SMax Khon 32c4f02a89SMax Khon struct quirk_replace_list { 33c4f02a89SMax Khon uint16_t standard_code, vendor_code; 34c4f02a89SMax Khon }; 35c4f02a89SMax Khon 36c4f02a89SMax Khon const char *search_quirk(const char *, const char *, 37c4f02a89SMax Khon struct quirk_replace_list **, size_t *); 38c4f02a89SMax Khon uint16_t quirk_vendor2unix(uint16_t, 39c4f02a89SMax Khon struct quirk_replace_list *, 40c4f02a89SMax Khon size_t); 41c4f02a89SMax Khon uint16_t quirk_unix2vendor(uint16_t, 42c4f02a89SMax Khon struct quirk_replace_list *, 43c4f02a89SMax Khon size_t); 44c4f02a89SMax Khon 45c4f02a89SMax Khon #endif /* _KICONV_QUIRKS_H_ */ 46