summaryrefslogtreecommitdiff
path: root/liblangtag/lt-extension-private.h
blob: 0efe4cfc7b65e059b46b48993e29d52be80b7456 (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
38
39
40
41
42
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* 
 * lt-extension-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_EXTENSION_PRIVATE_H__
#define __LT_EXTENSION_PRIVATE_H__

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

#include "lt-macros.h"
#include "lt-ext-module.h"
#include "lt-extension.h"

LT_BEGIN_DECLS

lt_extension_t *lt_extension_create        (void);
lt_extension_t *lt_extension_copy          (lt_extension_t  *extension);
lt_bool_t       lt_extension_has_singleton (lt_extension_t  *extension,
                                            char             singleton_c);
lt_bool_t       lt_extension_add_singleton (lt_extension_t  *extension,
					    char             singleton_c,
					    const lt_tag_t  *tag,
					    lt_error_t     **error);
lt_bool_t       lt_extension_add_tag       (lt_extension_t  *extension,
                                            const char      *subtag,
                                            lt_error_t     **error);
void            lt_extension_cancel_tag    (lt_extension_t  *extension);
lt_bool_t       lt_extension_validate_state(lt_extension_t  *extension);

LT_END_DECLS

#endif /* __LT_EXTENSION_PRIVATE_H__ */