1/* vim:set et sts=4: */
2/* ibus - The Input Bus
3 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
4 * Copyright (C) 2008-2010 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 * USA
20 */
21
22#ifndef __IBUS_VERSION_H_
23#define __IBUS_VERSION_H_
24
25/**
26 * SECTION: ibusversion
27 * @short_description: Current version of IBus.
28 * @stability: Stable
29 *
30 * IBusVersion shows the current IBus version.
31 */
32
33/* compile time version
34 */
35/**
36 * IBUS_MAJOR_VERSION:
37 *
38 * IBus major version.
39 */
40#define IBUS_MAJOR_VERSION (1)
41
42/**
43 * IBUS_MINOR_VERSION:
44 *
45 * IBus minor version.
46 */
47#define IBUS_MINOR_VERSION (5)
48
49/**
50 * IBUS_MICRO_VERSION:
51 *
52 * IBus micro version.
53 */
54#define IBUS_MICRO_VERSION (17)
55
56/**
57 * IBUS_CHECK_VERSION:
58 * @major: Major version of ibus.
59 * @minor: Minor version of ibus.
60 * @micro: Micro version of ibus.
61 *
62 * Check whether the current IBus version is equal to or greater than
63 * given major.minor.micro.
64 */
65#define IBUS_CHECK_VERSION(major,minor,micro) \
66 (IBUS_MAJOR_VERSION > (major) || \
67 (IBUS_MAJOR_VERSION == (major) && IBUS_MINOR_VERSION > (minor)) || \
68 (IBUS_MAJOR_VERSION == (major) && IBUS_MINOR_VERSION == (minor) && \
69 IBUS_MICRO_VERSION >= (micro)))
70
71#endif
72
73