1bb7548fdSMatthew Dillon /*- 2bb7548fdSMatthew Dillon * Copyright (c) 2010 Marcel Moolenaar 3bb7548fdSMatthew Dillon * All rights reserved. 4bb7548fdSMatthew Dillon * 5bb7548fdSMatthew Dillon * Redistribution and use in source and binary forms, with or without 6bb7548fdSMatthew Dillon * modification, are permitted provided that the following conditions 7bb7548fdSMatthew Dillon * are met: 8bb7548fdSMatthew Dillon * 1. Redistributions of source code must retain the above copyright 9bb7548fdSMatthew Dillon * notice, this list of conditions and the following disclaimer. 10bb7548fdSMatthew Dillon * 2. Redistributions in binary form must reproduce the above copyright 11bb7548fdSMatthew Dillon * notice, this list of conditions and the following disclaimer in the 12bb7548fdSMatthew Dillon * documentation and/or other materials provided with the distribution. 13bb7548fdSMatthew Dillon * 14bb7548fdSMatthew Dillon * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15bb7548fdSMatthew Dillon * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16bb7548fdSMatthew Dillon * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17bb7548fdSMatthew Dillon * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18bb7548fdSMatthew Dillon * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19bb7548fdSMatthew Dillon * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20bb7548fdSMatthew Dillon * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21bb7548fdSMatthew Dillon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22bb7548fdSMatthew Dillon * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23bb7548fdSMatthew Dillon * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24bb7548fdSMatthew Dillon * SUCH DAMAGE. 25bb7548fdSMatthew Dillon * 26*4661c169SSascha Wildner * $FreeBSD: head/stand/efi/include/efichar.h 323258 2017-09-07 07:30:05Z imp $ 27bb7548fdSMatthew Dillon */ 28bb7548fdSMatthew Dillon 29*4661c169SSascha Wildner #ifndef _BOOT_EFI_EFICHAR_H_ 30*4661c169SSascha Wildner #define _BOOT_EFI_EFICHAR_H_ 31bb7548fdSMatthew Dillon 32*4661c169SSascha Wildner int ucs2_to_utf8(const efi_char *, char **); 33*4661c169SSascha Wildner int utf8_to_ucs2(const char *, efi_char **, size_t *); 34*4661c169SSascha Wildner int ucs2len(const efi_char *); 35bb7548fdSMatthew Dillon 36*4661c169SSascha Wildner #endif /* _BOOT_EFI_EFICHAR_H_ */ 37