|
Packit |
971217 |
/* GStreamer base plugins libraries version information
|
|
Packit |
971217 |
* Copyright (C) 2010 Tim-Philipp Müller <tim centricular net>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* SECTION:gstpluginsbaseversion
|
|
Packit |
971217 |
* @title: Version
|
|
Packit |
971217 |
* @short_description: GStreamer gst-plugins-base libraries version macros.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Use the GST_PLUGINS_BASE_VERSION_* macros e.g. to check what version of
|
|
Packit |
971217 |
* gst-plugins-base you are building against, and gst_plugins_base_version()
|
|
Packit |
971217 |
* if you need to check at runtime what version of the gst-plugins-base
|
|
Packit |
971217 |
* libraries are being used / you are currently linked against.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* The version macros get defined by including <gst/pbutils/pbutils.h>.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include "gstpluginsbaseversion.h"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* gst_plugins_base_version:
|
|
Packit |
971217 |
* @major: (out): pointer to a guint to store the major version number, or %NULL
|
|
Packit |
971217 |
* @minor: (out): pointer to a guint to store the minor version number, or %NULL
|
|
Packit |
971217 |
* @micro: (out): pointer to a guint to store the micro version number, or %NULL
|
|
Packit |
971217 |
* @nano: (out): pointer to a guint to store the nano version number, or %NULL
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Gets the version number of the GStreamer Plugins Base libraries.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
void
|
|
Packit |
971217 |
gst_plugins_base_version (guint * major, guint * minor, guint * micro,
|
|
Packit |
971217 |
guint * nano)
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
if (major)
|
|
Packit |
971217 |
*major = GST_PLUGINS_BASE_VERSION_MAJOR;
|
|
Packit |
971217 |
if (minor)
|
|
Packit |
971217 |
*minor = GST_PLUGINS_BASE_VERSION_MINOR;
|
|
Packit |
971217 |
if (micro)
|
|
Packit |
971217 |
*micro = GST_PLUGINS_BASE_VERSION_MICRO;
|
|
Packit |
971217 |
if (nano)
|
|
Packit |
971217 |
*nano = GST_PLUGINS_BASE_VERSION_NANO;
|
|
Packit |
971217 |
}
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* gst_plugins_base_version_string:
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This function returns a string that is useful for describing this version
|
|
Packit |
971217 |
* of GStreamer's gst-plugins-base libraries to the outside world: user agent
|
|
Packit |
971217 |
* strings, logging, about dialogs ...
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Returns: a newly allocated string describing this version of gst-plugins-base
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
gchar *
|
|
Packit |
971217 |
gst_plugins_base_version_string (void)
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
return g_strdup_printf ("GStreamer Base Plugins %d.%d.%d%s",
|
|
Packit |
971217 |
GST_PLUGINS_BASE_VERSION_MAJOR, GST_PLUGINS_BASE_VERSION_MINOR,
|
|
Packit |
971217 |
GST_PLUGINS_BASE_VERSION_MICRO,
|
|
Packit |
971217 |
((GST_PLUGINS_BASE_VERSION_NANO == 0) ? "" :
|
|
Packit |
971217 |
((GST_PLUGINS_BASE_VERSION_NANO == 1) ? " (GIT)" : " (prerelease)")));
|
|
Packit |
971217 |
}
|