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.
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.
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.
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
22 * SECTION: ibusversion
23 * @short_description: Current version of IBus.
26 * IBusVersion shows the current IBus version.
29 #ifndef __IBUS_VERSION_H_
30 #define __IBUS_VERSION_H_
31 /* compile time version
38 #define IBUS_MAJOR_VERSION (@IBUS_MAJOR_VERSION@)
45 #define IBUS_MINOR_VERSION (@IBUS_MINOR_VERSION@)
52 #define IBUS_MICRO_VERSION (@IBUS_MICRO_VERSION@)
56 * @major: Major version of ibus.
57 * @minor: Minor version of ibus.
58 * @micro: Micro version of ibus.
60 * Check whether the current IBus version is equal to or greater than
61 * given major.minor.micro.
63 #define IBUS_CHECK_VERSION(major,minor,micro) \
64 (IBUS_MAJOR_VERSION > (major) || \
65 (IBUS_MAJOR_VERSION == (major) && IBUS_MINOR_VERSION > (minor)) || \
66 (IBUS_MAJOR_VERSION == (major) && IBUS_MINOR_VERSION == (minor) && \
67 IBUS_MICRO_VERSION >= (micro)))