2010-07-26 15:04:02 +00:00
|
|
|
/* GStreamer base plugins libraries version information
|
|
|
|
* Copyright (C) 2010 Tim-Philipp Müller <tim centricular net>
|
|
|
|
*
|
|
|
|
* 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 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2010-07-26 15:04:02 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_PLUGINS_BASE_VERSION_H__
|
|
|
|
#define __GST_PLUGINS_BASE_VERSION_H__
|
|
|
|
|
2017-05-21 16:42:55 +00:00
|
|
|
#include <gst/gst.h>
|
2010-07-26 15:04:02 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_PLUGINS_BASE_VERSION_MAJOR:
|
|
|
|
*
|
|
|
|
* The major version of GStreamer's gst-plugins-base libraries at compile time.
|
|
|
|
*/
|
|
|
|
#define GST_PLUGINS_BASE_VERSION_MAJOR (@PACKAGE_VERSION_MAJOR@)
|
|
|
|
/**
|
|
|
|
* GST_PLUGINS_BASE_VERSION_MINOR:
|
|
|
|
*
|
|
|
|
* The minor version of GStreamer's gst-plugins-base libraries at compile time.
|
|
|
|
*/
|
|
|
|
#define GST_PLUGINS_BASE_VERSION_MINOR (@PACKAGE_VERSION_MINOR@)
|
|
|
|
/**
|
|
|
|
* GST_PLUGINS_BASE_VERSION_MICRO:
|
|
|
|
*
|
|
|
|
* The micro version of GStreamer's gst-plugins-base libraries at compile time.
|
|
|
|
*/
|
|
|
|
#define GST_PLUGINS_BASE_VERSION_MICRO (@PACKAGE_VERSION_MICRO@)
|
|
|
|
/**
|
|
|
|
* GST_PLUGINS_BASE_VERSION_NANO:
|
|
|
|
*
|
|
|
|
* The nano version of GStreamer's gst-plugins-base libraries at compile time.
|
|
|
|
* Actual releases have 0, GIT versions have 1, prerelease versions have 2-...
|
|
|
|
*/
|
|
|
|
#define GST_PLUGINS_BASE_VERSION_NANO (@PACKAGE_VERSION_NANO@)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_CHECK_PLUGIN_BASE_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's gst-plugins-base libraries' version equal to
|
|
|
|
* or greater than major.minor.micro is present.
|
|
|
|
*/
|
|
|
|
#define GST_CHECK_PLUGINS_BASE_VERSION(major,minor,micro) \
|
|
|
|
(GST_PLUGINS_BASE_VERSION_MAJOR > (major) || \
|
|
|
|
(GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR > (minor)) || \
|
|
|
|
(GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \
|
2010-11-03 10:13:08 +00:00
|
|
|
GST_PLUGINS_BASE_VERSION_MICRO >= (micro)) || \
|
|
|
|
(GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \
|
|
|
|
GST_PLUGINS_BASE_VERSION_MICRO + 1 == (micro) && GST_PLUGINS_BASE_VERSION_NANO > 0))
|
2010-07-26 15:04:02 +00:00
|
|
|
|
2017-08-10 12:57:26 +00:00
|
|
|
GST_EXPORT
|
2010-07-26 15:04:02 +00:00
|
|
|
void gst_plugins_base_version (guint *major, guint *minor, guint *micro, guint *nano);
|
|
|
|
|
2017-08-10 12:57:26 +00:00
|
|
|
GST_EXPORT
|
2010-07-26 15:04:02 +00:00
|
|
|
gchar * gst_plugins_base_version_string (void);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_PLUGINS_BASE_VERSION_H__ */
|