Blame libwnck/version.h

Packit 4e910c
/* version info */
Packit 4e910c
/* vim: set sw=2 et: */
Packit 4e910c
Packit 4e910c
/*
Packit 4e910c
 * Copyright (C) 2011 Novell, Inc.
Packit 4e910c
 *
Packit 4e910c
 * This library is free software; you can redistribute it and/or
Packit 4e910c
 * modify it under the terms of the GNU Library General Public
Packit 4e910c
 * License as published by the Free Software Foundation; either
Packit 4e910c
 * version 2 of the License, or (at your option) any later version.
Packit 4e910c
 *
Packit 4e910c
 * This library is distributed in the hope that it will be useful,
Packit 4e910c
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 4e910c
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 4e910c
 * Library General Public License for more details.
Packit 4e910c
 *
Packit 4e910c
 * You should have received a copy of the GNU Library General Public
Packit 4e910c
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit 4e910c
 *
Packit 4e910c
 * Authors:
Packit 4e910c
 *      Vincent Untz <vuntz@gnome.org>
Packit 4e910c
 */
Packit 4e910c
Packit 4e910c
#if !defined (__LIBWNCK_H_INSIDE__) && !defined (WNCK_COMPILATION)
Packit 4e910c
#error "Only <libwnck/libwnck.h> can be included directly."
Packit 4e910c
#endif
Packit 4e910c
Packit 4e910c
#ifndef WNCK_VERSION_H
Packit 4e910c
#define WNCK_VERSION_H
Packit 4e910c
Packit 4e910c
/**
Packit 4e910c
 * SECTION:version
Packit 4e910c
 * @Short_description: variables and functions to check the libwnck version
Packit 4e910c
 * @stability: Unstable
Packit 4e910c
 *
Packit 4e910c
 * libwnck provides version information, primarily useful in configure checks
Packit 4e910c
 * for builds that have a configure script, and to write code against different
Packit 4e910c
 * versions of libwnck that do not provide the same API.
Packit 4e910c
 */
Packit 4e910c
Packit 4e910c
/**
Packit 4e910c
 * WNCK_MAJOR_VERSION:
Packit 4e910c
 *
Packit 4e910c
 * Return value: the major version number of the libwnck library, from the
Packit 4e910c
 * headers used at application compile time, rather than from the library
Packit 4e910c
 * linked against at application run time.
Packit 4e910c
 * (e.g. in libwnck version 1.2.5 this is 1.)
Packit 4e910c
 *
Packit 4e910c
 * Since: 3.0
Packit 4e910c
 */
Packit 4e910c
#define WNCK_MAJOR_VERSION (3)
Packit 4e910c
Packit 4e910c
/**
Packit 4e910c
 * WNCK_MINOR_VERSION:
Packit 4e910c
 *
Packit 4e910c
 * Return value: the minor version number of the libwnck library, from the
Packit 4e910c
 * headers used at application compile time, rather than from the library
Packit 4e910c
 * linked against at application run time.
Packit 4e910c
 * (e.g. in libwnck version 1.2.5 this is 2.)
Packit 4e910c
 *
Packit 4e910c
 * Since: 3.0
Packit 4e910c
 */
Packit 4e910c
#define WNCK_MINOR_VERSION (24)
Packit 4e910c
Packit 4e910c
/**
Packit 4e910c
 * WNCK_MICRO_VERSION:
Packit 4e910c
 *
Packit 4e910c
 * Return value: the micro version number of the libwnck library, from the
Packit 4e910c
 * headers used at application compile time, rather than from the library
Packit 4e910c
 * linked against at application run time.
Packit 4e910c
 * (e.g. in libwnck version 1.2.5 this is 5.)
Packit 4e910c
 *
Packit 4e910c
 * Since: 3.0
Packit 4e910c
 */
Packit 4e910c
#define WNCK_MICRO_VERSION (1)
Packit 4e910c
Packit 4e910c
/**
Packit 4e910c
 * WNCK_CHECK_VERSION:
Packit 4e910c
 * @major: major version (e.g. 1 for version 1.2.5)
Packit 4e910c
 * @minor: minor version (e.g. 2 for version 1.2.5)
Packit 4e910c
 * @micro: micro version (e.g. 5 for version 1.2.5)
Packit 4e910c
 *
Packit 4e910c
 * Return value: %TRUE if the version of the libwnck header files
Packit 4e910c
 * is the same as or newer than the passed-in version, %FALSE
Packit 4e910c
 * otherwise.
Packit 4e910c
 *
Packit 4e910c
 * Since: 3.0
Packit 4e910c
 */
Packit 4e910c
#define WNCK_CHECK_VERSION(major,minor,micro)                           \
Packit 4e910c
    (WNCK_MAJOR_VERSION > (major) ||                                    \
Packit 4e910c
     (WNCK_MAJOR_VERSION == (major) && WNCK_MINOR_VERSION > (minor)) || \
Packit 4e910c
     (WNCK_MAJOR_VERSION == (major) && WNCK_MINOR_VERSION == (minor) && \
Packit 4e910c
      WNCK_MICRO_VERSION >= (micro)))
Packit 4e910c
Packit 4e910c
#endif /* WNCK_VERSION_H */