lmessages.h revision 227753
10Sstevel@tonic-gate/*-
20Sstevel@tonic-gate * Copyright (c) 2000, 2001 Alexey Zelkin <phantom@FreeBSD.org>
30Sstevel@tonic-gate * All rights reserved.
40Sstevel@tonic-gate *
54538Sdamico * Copyright (c) 2011 The FreeBSD Foundation
64538Sdamico * All rights reserved.
70Sstevel@tonic-gate * Portions of this software were developed by David Chisnall
80Sstevel@tonic-gate * under sponsorship from the FreeBSD Foundation.
90Sstevel@tonic-gate *
100Sstevel@tonic-gate * Redistribution and use in source and binary forms, with or without
110Sstevel@tonic-gate * modification, are permitted provided that the following conditions
120Sstevel@tonic-gate * are met:
130Sstevel@tonic-gate * 1. Redistributions of source code must retain the above copyright
140Sstevel@tonic-gate *    notice, this list of conditions and the following disclaimer.
150Sstevel@tonic-gate * 2. Redistributions in binary form must reproduce the above copyright
160Sstevel@tonic-gate *    notice, this list of conditions and the following disclaimer in the
170Sstevel@tonic-gate *    documentation and/or other materials provided with the distribution.
180Sstevel@tonic-gate *
190Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
200Sstevel@tonic-gate * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
210Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
226951Sab196087 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
230Sstevel@tonic-gate * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
240Sstevel@tonic-gate * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
250Sstevel@tonic-gate * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
260Sstevel@tonic-gate * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
270Sstevel@tonic-gate * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
280Sstevel@tonic-gate * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
290Sstevel@tonic-gate * SUCH DAMAGE.
300Sstevel@tonic-gate *
314538Sdamico * $FreeBSD: head/lib/libc/locale/lmessages.h 227753 2011-11-20 14:45:42Z theraven $
320Sstevel@tonic-gate */
330Sstevel@tonic-gate
340Sstevel@tonic-gate#ifndef _LMESSAGES_H_
350Sstevel@tonic-gate#define	_LMESSAGES_H_
360Sstevel@tonic-gate
370Sstevel@tonic-gate#include "xlocale_private.h"
380Sstevel@tonic-gate
390Sstevel@tonic-gatestruct	lc_messages_T {
400Sstevel@tonic-gate	const char	*yesexpr;
410Sstevel@tonic-gate	const char	*noexpr;
420Sstevel@tonic-gate	const char	*yesstr;
430Sstevel@tonic-gate	const char	*nostr;
440Sstevel@tonic-gate};
450Sstevel@tonic-gate
460Sstevel@tonic-gatestruct lc_messages_T *__get_current_messages_locale(locale_t);
470Sstevel@tonic-gateint	__messages_load_locale(const char *);
480Sstevel@tonic-gate
490Sstevel@tonic-gate#endif /* !_LMESSAGES_H_ */
500Sstevel@tonic-gate