1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 /* 3 * lt-region.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_REGION_H__ 18 #define __LT_REGION_H__ 19 20 #include <liblangtag/lt-macros.h> 21 22 LT_BEGIN_DECLS 23 24 /** 25 * lt_region_t: 26 * 27 * All the fields in the <structname>lt_region_t</structname> 28 * structure are private to the #lt_region_t implementation. 29 */ 30 typedef struct _lt_region_t lt_region_t; 31 32 33 lt_region_t *lt_region_ref (lt_region_t *region); 34 void lt_region_unref (lt_region_t *region); 35 const char *lt_region_get_name (const lt_region_t *region); 36 const char *lt_region_get_better_tag (const lt_region_t *region); 37 const char *lt_region_get_tag (const lt_region_t *region); 38 const char *lt_region_get_preferred_tag(const lt_region_t *region); 39 void lt_region_dump (const lt_region_t *region); 40 lt_bool_t lt_region_compare (const lt_region_t *v1, 41 const lt_region_t *v2); 42 43 LT_END_DECLS 44 45 #endif /* __LT_REGION_H__ */ 46