summaryrefslogtreecommitdiff
path: root/liblangtag/lt-variant-private.h
blob: de1dc32f97f5584f3bf0ce3f69323d831776c8ce (plain)
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* 
 * lt-variant-private.h
 * Copyright (C) 2011-2015 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.
 */
#ifndef __LT_VARIANT_PRIVATE_H__
#define __LT_VARIANT_PRIVATE_H__

#if !defined (__LANGTAG_PRIVATE)
#error "Unable to use the private header publicly"
#endif

#include "lt-macros.h"
#include "lt-variant.h"

LT_BEGIN_DECLS

lt_variant_t *lt_variant_create           (void);
void          lt_variant_set_tag          (lt_variant_t *variant,
                                           const char   *subtag);
void          lt_variant_set_preferred_tag(lt_variant_t *variant,
                                           const char   *subtag);
void          lt_variant_set_name         (lt_variant_t *variant,
                                           const char   *description);
void          lt_variant_add_prefix       (lt_variant_t *variant,
                                           const char   *prefix);

LT_END_DECLS

#endif /* __LT_VARIANT_PRIVATE_H__ */