2001-04-17 02:19:08 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
* 2000 Wim Taymans <wtay@chello.be>
|
|
|
|
*
|
|
|
|
* gstversion.h: Version information for GStreamer
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:44:48 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2001-04-17 02:19:08 +00:00
|
|
|
*/
|
2015-06-13 15:55:10 +00:00
|
|
|
|
|
|
|
#ifndef __GST_VERSION_H__
|
|
|
|
#define __GST_VERSION_H__
|
|
|
|
|
2015-08-15 11:25:35 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
2005-08-30 17:23:19 +00:00
|
|
|
/**
|
|
|
|
* SECTION:gstversion
|
|
|
|
* @short_description: GStreamer version macros.
|
|
|
|
*
|
|
|
|
* Use the GST_VERSION_* macros e.g. when defining own plugins. The GStreamer
|
|
|
|
* runtime checks if these plugin and core version match and refuses to use a
|
|
|
|
* plugin compiled against a different version of GStreamer.
|
2005-10-16 09:10:17 +00:00
|
|
|
* You can also use the macros to keep the GStreamer version information in
|
|
|
|
* your application.
|
2005-08-30 17:23:19 +00:00
|
|
|
*
|
2005-10-16 09:10:17 +00:00
|
|
|
* Use the gst_version() function if you want to know which version of
|
2005-08-30 17:23:19 +00:00
|
|
|
* GStreamer you are currently linked against.
|
|
|
|
*
|
|
|
|
* The version macros get defined by including "gst/gst.h".
|
|
|
|
*/
|
2001-04-17 02:19:08 +00:00
|
|
|
|
2004-12-09 13:37:18 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2005-08-30 17:23:19 +00:00
|
|
|
/**
|
|
|
|
* GST_VERSION_MAJOR:
|
|
|
|
*
|
|
|
|
* The major version of GStreamer at compile time:
|
2003-06-29 14:05:49 +00:00
|
|
|
*/
|
2012-04-04 11:13:52 +00:00
|
|
|
#define GST_VERSION_MAJOR (@GST_VERSION_MAJOR@)
|
2005-08-30 17:23:19 +00:00
|
|
|
/**
|
|
|
|
* GST_VERSION_MINOR:
|
|
|
|
*
|
|
|
|
* The minor version of GStreamer at compile time:
|
|
|
|
*/
|
2012-04-04 11:13:52 +00:00
|
|
|
#define GST_VERSION_MINOR (@GST_VERSION_MINOR@)
|
2005-08-30 17:23:19 +00:00
|
|
|
/**
|
|
|
|
* GST_VERSION_MICRO:
|
|
|
|
*
|
|
|
|
* The micro version of GStreamer at compile time:
|
|
|
|
*/
|
2012-04-04 11:13:52 +00:00
|
|
|
#define GST_VERSION_MICRO (@GST_VERSION_MICRO@)
|
2005-10-16 09:10:17 +00:00
|
|
|
/**
|
|
|
|
* GST_VERSION_NANO:
|
|
|
|
*
|
|
|
|
* The nano version of GStreamer at compile time:
|
2009-02-08 09:28:16 +00:00
|
|
|
* Actual releases have 0, GIT versions have 1, prerelease versions have 2-...
|
2005-10-16 09:10:17 +00:00
|
|
|
*/
|
2012-04-04 11:13:52 +00:00
|
|
|
#define GST_VERSION_NANO (@GST_VERSION_NANO@)
|
2001-04-17 02:19:08 +00:00
|
|
|
|
2008-02-01 16:37:22 +00:00
|
|
|
/**
|
|
|
|
* GST_CHECK_VERSION:
|
|
|
|
* @major: a number indicating the major version
|
|
|
|
* @minor: a number indicating the minor version
|
|
|
|
* @micro: a number indicating the micro version
|
|
|
|
*
|
|
|
|
* Check whether a GStreamer version equal to or greater than
|
|
|
|
* major.minor.micro is present.
|
|
|
|
*/
|
|
|
|
#define GST_CHECK_VERSION(major,minor,micro) \
|
|
|
|
(GST_VERSION_MAJOR > (major) || \
|
|
|
|
(GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR > (minor)) || \
|
|
|
|
(GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR == (minor) && \
|
2010-11-03 10:14:03 +00:00
|
|
|
GST_VERSION_MICRO >= (micro)) || \
|
|
|
|
(GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR == (minor) && \
|
|
|
|
GST_VERSION_MICRO + 1 == (micro) && GST_VERSION_NANO > 0))
|
2008-02-01 16:37:22 +00:00
|
|
|
|
2004-12-09 13:37:18 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2003-02-02 18:58:51 +00:00
|
|
|
#endif /* __GST_VERSION_H__ */
|