Blame clutter-gtk/gtk-clutter-version.h.in

Packit Service 6a0f92
/*
Packit Service 6a0f92
 * Clutter-GTK.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Copyright (C) 2010 Intel Corp.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * This library is free software; you can redistribute it and/or
Packit Service 6a0f92
 * modify it under the terms of the GNU Lesser General Public
Packit Service 6a0f92
 * License as published by the Free Software Foundation; either
Packit Service 6a0f92
 * version 2 of the License, or (at your option) any later version.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * This library is distributed in the hope that it will be useful,
Packit Service 6a0f92
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 6a0f92
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 6a0f92
 * Lesser General Public License for more details.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * You should have received a copy of the GNU Lesser General Public
Packit Service 6a0f92
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Author:
Packit Service 6a0f92
 *   Emmanuele Bassi <ebassi@linux.intel.com>
Packit Service 6a0f92
 */
Packit Service 6a0f92
Packit Service 6a0f92
#if !defined(__CLUTTER_GTK_H_INSIDE__) && !defined(CLUTTER_GTK_COMPILATION)
Packit Service 6a0f92
#error "Only <clutter-gtk/clutter-gtk.h> can be included directly."
Packit Service 6a0f92
#endif
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * SECTION:gtk-clutter-version
Packit Service 6a0f92
 * @Title: Versioning
Packit Service 6a0f92
 * @short_description: Versioning utility macros
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Clutter-GTK offers a set of macros for checking the version of the library
Packit Service 6a0f92
 * an application was linked to.
Packit Service 6a0f92
 */
Packit Service 6a0f92
Packit Service 6a0f92
#ifndef __GTK_CLUTTER_VERSION_H__
Packit Service 6a0f92
#define __GTK_CLUTTER_VERSION_H__
Packit Service 6a0f92
Packit Service 6a0f92
#include <glib.h>
Packit Service 6a0f92
Packit Service 6a0f92
G_BEGIN_DECLS
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * CLUTTER_GTK_MAJOR_VERSION:
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * The major version of the Clutter-GTK library (1, if %CLUTTER_GTK_VERSION
Packit Service 6a0f92
 * is 1.2.3)
Packit Service 6a0f92
 */
Packit Service 6a0f92
#define CLUTTER_GTK_MAJOR_VERSION       (@CLUTTER_GTK_MAJOR_VERSION@)
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * CLUTTER_GTK_MINOR_VERSION:
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * The minor version of the Clutter-GTK library (2, if %CLUTTER_GTK_VERSION
Packit Service 6a0f92
 * is 1.2.3)
Packit Service 6a0f92
 */
Packit Service 6a0f92
#define CLUTTER_GTK_MINOR_VERSION       (@CLUTTER_GTK_MINOR_VERSION@)
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * CLUTTER_GTK_MICRO_VERSION:
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * The micro version of the Clutter-GTK library (3, if %CLUTTER_GTK_VERSION
Packit Service 6a0f92
 * is 1.2.3)
Packit Service 6a0f92
 */
Packit Service 6a0f92
#define CLUTTER_GTK_MICRO_VERSION       (@CLUTTER_GTK_MICRO_VERSION@)
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * CLUTTER_GTK_VERSION:
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * The full version of the Clutter-GTK library, like 1.2.3
Packit Service 6a0f92
 */
Packit Service 6a0f92
#define CLUTTER_GTK_VERSION             @CLUTTER_GTK_VERSION@
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * CLUTTER_GTK_VERSION_S:
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * The full version of the Clutter-GTK library, in string form (suited for
Packit Service 6a0f92
 * string concatenation)
Packit Service 6a0f92
 */
Packit Service 6a0f92
#define CLUTTER_GTK_VERSION_S           "@CLUTTER_GTK_VERSION@"
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * CLUTTER_GTK_VERSION_HEX:
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Numerically encoded version of the Clutter-GTK library, like 0x010203
Packit Service 6a0f92
 */
Packit Service 6a0f92
#define CLUTTER_GTK_VERSION_HEX         ((CLUTTER_GTK_MAJOR_VERSION << 24) | \
Packit Service 6a0f92
                                         (CLUTTER_GTK_MINOR_VERSION << 16) | \
Packit Service 6a0f92
                                         (CLUTTER_GTK_MICRO_VERSION << 8))
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * CLUTTER_GTK_CHECK_VERSION:
Packit Service 6a0f92
 * @major: major version, like 1 in 1.2.3
Packit Service 6a0f92
 * @minor: minor version, like 2 in 1.2.3
Packit Service 6a0f92
 * @micro: micro version, like 3 in 1.2.3
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Evaluates to %TRUE if the version of the Clutter-GTK library is greater
Packit Service 6a0f92
 * than @major, @minor and @micro
Packit Service 6a0f92
 */
Packit Service 6a0f92
#define CLUTTER_GTK_CHECK_VERSION(major,minor,micro) \
Packit Service 6a0f92
        (CLUTTER_GTK_MAJOR_VERSION > (major) || \
Packit Service 6a0f92
         (CLUTTER_GTK_MAJOR_VERSION == (major) && CLUTTER_GTK_MINOR_VERSION > (minor)) || \
Packit Service 6a0f92
         (CLUTTER_GTK_MAJOR_VERSION == (major) && CLUTTER_GTK_MINOR_VERSION == (minor) && CLUTTER_GTK_MICRO_VERSION >= (micro)))
Packit Service 6a0f92
Packit Service 6a0f92
#ifndef CLUTTER_GTK_EXTERN
Packit Service 6a0f92
#define CLUTTER_GTK_EXTERN extern
Packit Service 6a0f92
#endif
Packit Service 6a0f92
Packit Service 6a0f92
CLUTTER_GTK_EXTERN
Packit Service 6a0f92
gboolean gtk_clutter_check_version (guint major,
Packit Service 6a0f92
                                    guint minor,
Packit Service 6a0f92
                                    guint micro);
Packit Service 6a0f92
Packit Service 6a0f92
G_END_DECLS
Packit Service 6a0f92
Packit Service 6a0f92
#endif /* __GTK_CLUTTER_VERSION_H__ */