1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 /* 3 * lt-extlang.h 4 * Copyright (C) 2011-2012 Akira TAGOH 5 * 6 * Authors: 7 * Akira TAGOH <akira@tagoh.org> 8 * 9 * You may distribute under the terms of either the GNU 10 * Lesser General Public License or the Mozilla Public 11 * License, as specified in the README file. 12 */ 13 #if !defined (__LANGTAG_H__INSIDE) && !defined (__LANGTAG_COMPILATION) 14 #error "Only <liblangtag/langtag.h> can be included directly." 15 #endif 16 17 #ifndef __LT_EXTLANG_H__ 18 #define __LT_EXTLANG_H__ 19 20 #include <liblangtag/lt-macros.h> 21 22 LT_BEGIN_DECLS 23 24 /** 25 * lt_extlang_t: 26 * 27 * All the fields in the <structname>lt_extlang_t</structname> 28 * structure are private to the #lt_extlang_t implementation. 29 */ 30 typedef struct _lt_extlang_t lt_extlang_t; 31 32 33 lt_extlang_t *lt_extlang_ref (lt_extlang_t *extlang); 34 void lt_extlang_unref (lt_extlang_t *extlang); 35 const char *lt_extlang_get_tag (const lt_extlang_t *extlang); 36 const char *lt_extlang_get_preferred_tag (const lt_extlang_t *extlang); 37 const char *lt_extlang_get_name (const lt_extlang_t *extlang); 38 const char *lt_extlang_get_macro_language(const lt_extlang_t *extlang); 39 const char *lt_extlang_get_prefix (const lt_extlang_t *extlang); 40 void lt_extlang_dump (const lt_extlang_t *extlang); 41 lt_bool_t lt_extlang_compare (const lt_extlang_t *v1, 42 const lt_extlang_t *v2); 43 44 LT_END_DECLS 45 46 #endif /* __LT_EXTLANG_H__ */ 47