File: lt-lang-db.gir.h

package info (click to toggle)
liblangtag 0.6.8-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 6,780 kB
  • sloc: xml: 62,392; ansic: 12,827; sh: 4,600; makefile: 811
file content (43 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <glib.h>
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* 
 * lt-lang-db.h
 * Copyright (C) 2011-2012 Akira TAGOH
 * 
 * Authors:
 *   Akira TAGOH  <akira@tagoh.org>
 * 
 * You may distribute under the terms of either the GNU
 * Lesser General Public License or the Mozilla Public
 * License, as specified in the README file.
 */
#if !defined (__LANGTAG_H__INSIDE) && !defined (__LANGTAG_COMPILATION)
#error "Only <liblangtag/langtag.h> can be included directly."
#endif

#ifndef __LT_LANG_DB_H__
#define __LT_LANG_DB_H__

#include <liblangtag-gobject/lt-macros.gir.h>
#include <liblangtag-gobject/lt-iter.gir.h>
#include <liblangtag-gobject/lt-lang.gir.h>

LT_BEGIN_DECLS

/**
 * LtLangDb:
 *
 * All the fields in the <structname>LtLangDb</structname>
 * structure are private to the #LtLangDb implementation.
 */
typedef struct _LtLangDb		LtLangDb;

LtLangDb *lt_lang_db_new   (void);
LtLangDb *lt_lang_db_ref   (LtLangDb *langdb);
void          lt_lang_db_unref (LtLangDb *langdb);
LtLang    *lt_lang_db_lookup(LtLangDb *langdb,
                                const char   *subtag);

LT_END_DECLS

#endif /* __LT_LANG_DB_H__ */