Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (37 sloc) 1.406 kb
6009fc3 @tagoh Add region database handler
authored
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 *
7eadc2a @tagoh Changed to the dual-licensing with MPLv2
authored
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.
6009fc3 @tagoh Add region database handler
authored
12 */
f6e80da @tagoh Add langtag.h
authored
13 #if !defined (__LANGTAG_H__INSIDE) && !defined (__LANGTAG_COMPILATION)
14 #error "Only <liblangtag/langtag.h> can be included directly."
15 #endif
16
6009fc3 @tagoh Add region database handler
authored
17 #ifndef __LT_REGION_H__
18 #define __LT_REGION_H__
19
51b0923 @tagoh clean up to reduce glib dependencies
authored
20 #include <liblangtag/lt-macros.h>
6009fc3 @tagoh Add region database handler
authored
21
51b0923 @tagoh clean up to reduce glib dependencies
authored
22 LT_BEGIN_DECLS
6009fc3 @tagoh Add region database handler
authored
23
3b504f6 @tagoh Update docs
authored
24 /**
25 * lt_region_t:
51c0f56 @tagoh Update docs
authored
26 *
27 * All the fields in the <structname>lt_region_t</structname>
28 * structure are private to the #lt_region_t implementation.
3b504f6 @tagoh Update docs
authored
29 */
c1b3771 @tagoh Export the internal database structure class for region and division
authored
30 typedef struct _lt_region_t lt_region_t;
6009fc3 @tagoh Add region database handler
authored
31
32
7139490 @tagoh update to deal with the missing fields
authored
33 lt_region_t *lt_region_ref (lt_region_t *region);
34 void lt_region_unref (lt_region_t *region);
51b0923 @tagoh clean up to reduce glib dependencies
authored
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);
7139490 @tagoh update to deal with the missing fields
authored
39 void lt_region_dump (const lt_region_t *region);
51b0923 @tagoh clean up to reduce glib dependencies
authored
40 lt_bool_t lt_region_compare (const lt_region_t *v1,
f33f0ff @tagoh Add a compare functions
authored
41 const lt_region_t *v2);
6009fc3 @tagoh Add region database handler
authored
42
0a1d171 @tagoh another try to clean up glib dependencies
authored
43 LT_END_DECLS
6009fc3 @tagoh Add region database handler
authored
44
45 #endif /* __LT_REGION_H__ */
Something went wrong with that request. Please try again.