Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (34 sloc) 1.129 kb
945fa0c @tagoh rename APIs for langdb
authored
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * lt-lang-db.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.
945fa0c @tagoh rename APIs for langdb
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
945fa0c @tagoh rename APIs for langdb
authored
17 #ifndef __LT_LANG_DB_H__
18 #define __LT_LANG_DB_H__
19
0a1d171 @tagoh another try to clean up glib dependencies
authored
20 #include <liblangtag/lt-macros.h>
55c7a01 @tagoh export the internal database structure class
authored
21 #include <liblangtag/lt-lang.h>
945fa0c @tagoh rename APIs for langdb
authored
22
0a1d171 @tagoh another try to clean up glib dependencies
authored
23 LT_BEGIN_DECLS
945fa0c @tagoh rename APIs for langdb
authored
24
3b504f6 @tagoh Update docs
authored
25 /**
26 * lt_lang_db_t:
51c0f56 @tagoh Update docs
authored
27 *
28 * All the fields in the <structname>lt_lang_db_t</structname>
29 * structure are private to the #lt_lang_db_t implementation.
3b504f6 @tagoh Update docs
authored
30 */
945fa0c @tagoh rename APIs for langdb
authored
31 typedef struct _lt_lang_db_t lt_lang_db_t;
32
33
ad8e4a6 @tagoh get rid of iso-codes deps
authored
34 lt_lang_db_t *lt_lang_db_new (void);
35 lt_lang_db_t *lt_lang_db_ref (lt_lang_db_t *langdb);
36 void lt_lang_db_unref (lt_lang_db_t *langdb);
37 lt_lang_t *lt_lang_db_lookup(lt_lang_db_t *langdb,
0a1d171 @tagoh another try to clean up glib dependencies
authored
38 const char *subtag);
945fa0c @tagoh rename APIs for langdb
authored
39
0a1d171 @tagoh another try to clean up glib dependencies
authored
40 LT_END_DECLS
945fa0c @tagoh rename APIs for langdb
authored
41
42 #endif /* __LT_LANG_DB_H__ */
Something went wrong with that request. Please try again.