1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>Version: GStreamer Base Plugins 1.0 Library Reference Manual</title> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Library Reference Manual"> 8<link rel="up" href="gstreamer-base-utils.html" title="Base Utils Library"> 9<link rel="prev" href="gst-plugins-base-libs-Pbutils.html" title="Pbutils"> 10<link rel="next" href="gst-plugins-base-libs-Codec-utilities.html" title="Codec utilities"> 11<meta name="generator" content="GTK-Doc V1.28 (XML mode)"> 12<link rel="stylesheet" href="style.css" type="text/css"> 13</head> 14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> 16<td width="100%" align="left" class="shortcuts"> 17<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 18 <a href="#gst-plugins-base-libs-Version.description" class="shortcut">Description</a></span> 19</td> 20<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 21<td><a accesskey="u" href="gstreamer-base-utils.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 22<td><a accesskey="p" href="gst-plugins-base-libs-Pbutils.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 23<td><a accesskey="n" href="gst-plugins-base-libs-Codec-utilities.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 24</tr></table> 25<div class="refentry"> 26<a name="gst-plugins-base-libs-Version"></a><div class="titlepage"></div> 27<div class="refnamediv"><table width="100%"><tr> 28<td valign="top"> 29<h2><span class="refentrytitle"><a name="gst-plugins-base-libs-Version.top_of_page"></a>Version</span></h2> 30<p>Version — GStreamer gst-plugins-base libraries version macros.</p> 31</td> 32<td class="gallery_image" valign="top" align="right"></td> 33</tr></table></div> 34<div class="refsect1"> 35<a name="gst-plugins-base-libs-Version.functions"></a><h2>Functions</h2> 36<div class="informaltable"><table class="informaltable" width="100%" border="0"> 37<colgroup> 38<col width="150px" class="functions_return"> 39<col class="functions_name"> 40</colgroup> 41<tbody> 42<tr> 43<td class="define_keyword">#define</td> 44<td class="function_name"> 45<a class="link" href="gst-plugins-base-libs-Version.html#GST-CHECK-PLUGINS-BASE-VERSION:CAPS" title="GST_CHECK_PLUGINS_BASE_VERSION()">GST_CHECK_PLUGINS_BASE_VERSION</a><span class="c_punctuation">()</span> 46</td> 47</tr> 48<tr> 49<td class="function_type"> 50<span class="returnvalue">void</span> 51</td> 52<td class="function_name"> 53<a class="link" href="gst-plugins-base-libs-Version.html#gst-plugins-base-version" title="gst_plugins_base_version ()">gst_plugins_base_version</a> <span class="c_punctuation">()</span> 54</td> 55</tr> 56<tr> 57<td class="function_type"> 58<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 59</td> 60<td class="function_name"> 61<a class="link" href="gst-plugins-base-libs-Version.html#gst-plugins-base-version-string" title="gst_plugins_base_version_string ()">gst_plugins_base_version_string</a> <span class="c_punctuation">()</span> 62</td> 63</tr> 64</tbody> 65</table></div> 66</div> 67<div class="refsect1"> 68<a name="gst-plugins-base-libs-Version.other"></a><h2>Types and Values</h2> 69<div class="informaltable"><table class="informaltable" width="100%" border="0"> 70<colgroup> 71<col width="150px" class="name"> 72<col class="description"> 73</colgroup> 74<tbody> 75<tr> 76<td class="define_keyword">#define</td> 77<td class="function_name"><a class="link" href="gst-plugins-base-libs-Version.html#GST-PLUGINS-BASE-VERSION-MAJOR:CAPS" title="GST_PLUGINS_BASE_VERSION_MAJOR">GST_PLUGINS_BASE_VERSION_MAJOR</a></td> 78</tr> 79<tr> 80<td class="define_keyword">#define</td> 81<td class="function_name"><a class="link" href="gst-plugins-base-libs-Version.html#GST-PLUGINS-BASE-VERSION-MINOR:CAPS" title="GST_PLUGINS_BASE_VERSION_MINOR">GST_PLUGINS_BASE_VERSION_MINOR</a></td> 82</tr> 83<tr> 84<td class="define_keyword">#define</td> 85<td class="function_name"><a class="link" href="gst-plugins-base-libs-Version.html#GST-PLUGINS-BASE-VERSION-MICRO:CAPS" title="GST_PLUGINS_BASE_VERSION_MICRO">GST_PLUGINS_BASE_VERSION_MICRO</a></td> 86</tr> 87<tr> 88<td class="define_keyword">#define</td> 89<td class="function_name"><a class="link" href="gst-plugins-base-libs-Version.html#GST-PLUGINS-BASE-VERSION-NANO:CAPS" title="GST_PLUGINS_BASE_VERSION_NANO">GST_PLUGINS_BASE_VERSION_NANO</a></td> 90</tr> 91</tbody> 92</table></div> 93</div> 94<div class="refsect1"> 95<a name="gst-plugins-base-libs-Version.includes"></a><h2>Includes</h2> 96<pre class="synopsis">#include <gst/pbutils/pbutils.h> 97</pre> 98</div> 99<div class="refsect1"> 100<a name="gst-plugins-base-libs-Version.description"></a><h2>Description</h2> 101<p>Use the GST_PLUGINS_BASE_VERSION_* macros e.g. to check what version of 102gst-plugins-base you are building against, and <a class="link" href="gst-plugins-base-libs-Version.html#gst-plugins-base-version" title="gst_plugins_base_version ()"><code class="function">gst_plugins_base_version()</code></a> 103if you need to check at runtime what version of the gst-plugins-base 104libraries are being used / you are currently linked against.</p> 105<p>The version macros get defined by including <gst/pbutils/pbutils.h>.</p> 106</div> 107<div class="refsect1"> 108<a name="gst-plugins-base-libs-Version.functions_details"></a><h2>Functions</h2> 109<div class="refsect2"> 110<a name="GST-CHECK-PLUGINS-BASE-VERSION:CAPS"></a><h3>GST_CHECK_PLUGINS_BASE_VERSION()</h3> 111<pre class="programlisting">#define GST_CHECK_PLUGINS_BASE_VERSION(major,minor,micro)</pre> 112</div> 113<hr> 114<div class="refsect2"> 115<a name="gst-plugins-base-version"></a><h3>gst_plugins_base_version ()</h3> 116<pre class="programlisting"><span class="returnvalue">void</span> 117gst_plugins_base_version (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *major</code></em>, 118 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *minor</code></em>, 119 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *micro</code></em>, 120 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *nano</code></em>);</pre> 121<p>Gets the version number of the GStreamer Plugins Base libraries.</p> 122<div class="refsect3"> 123<a name="gst-plugins-base-version.parameters"></a><h4>Parameters</h4> 124<div class="informaltable"><table class="informaltable" width="100%" border="0"> 125<colgroup> 126<col width="150px" class="parameters_name"> 127<col class="parameters_description"> 128<col width="200px" class="parameters_annotations"> 129</colgroup> 130<tbody> 131<tr> 132<td class="parameter_name"><p>major</p></td> 133<td class="parameter_description"><p>pointer to a guint to store the major version number, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td> 134<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 135</tr> 136<tr> 137<td class="parameter_name"><p>minor</p></td> 138<td class="parameter_description"><p>pointer to a guint to store the minor version number, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td> 139<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 140</tr> 141<tr> 142<td class="parameter_name"><p>micro</p></td> 143<td class="parameter_description"><p>pointer to a guint to store the micro version number, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td> 144<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 145</tr> 146<tr> 147<td class="parameter_name"><p>nano</p></td> 148<td class="parameter_description"><p>pointer to a guint to store the nano version number, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td> 149<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 150</tr> 151</tbody> 152</table></div> 153</div> 154</div> 155<hr> 156<div class="refsect2"> 157<a name="gst-plugins-base-version-string"></a><h3>gst_plugins_base_version_string ()</h3> 158<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 159gst_plugins_base_version_string (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> 160<p>This function returns a string that is useful for describing this version 161of GStreamer's gst-plugins-base libraries to the outside world: user agent 162strings, logging, about dialogs ...</p> 163<div class="refsect3"> 164<a name="gst-plugins-base-version-string.returns"></a><h4>Returns</h4> 165<p> a newly allocated string describing this version of gst-plugins-base</p> 166</div> 167</div> 168</div> 169<div class="refsect1"> 170<a name="gst-plugins-base-libs-Version.other_details"></a><h2>Types and Values</h2> 171<div class="refsect2"> 172<a name="GST-PLUGINS-BASE-VERSION-MAJOR:CAPS"></a><h3>GST_PLUGINS_BASE_VERSION_MAJOR</h3> 173<pre class="programlisting">#define GST_PLUGINS_BASE_VERSION_MAJOR (1) 174</pre> 175<p>The major version of GStreamer's gst-plugins-base libraries at compile time.</p> 176</div> 177<hr> 178<div class="refsect2"> 179<a name="GST-PLUGINS-BASE-VERSION-MINOR:CAPS"></a><h3>GST_PLUGINS_BASE_VERSION_MINOR</h3> 180<pre class="programlisting">#define GST_PLUGINS_BASE_VERSION_MINOR (16) 181</pre> 182<p>The minor version of GStreamer's gst-plugins-base libraries at compile time.</p> 183</div> 184<hr> 185<div class="refsect2"> 186<a name="GST-PLUGINS-BASE-VERSION-MICRO:CAPS"></a><h3>GST_PLUGINS_BASE_VERSION_MICRO</h3> 187<pre class="programlisting">#define GST_PLUGINS_BASE_VERSION_MICRO (2) 188</pre> 189<p>The micro version of GStreamer's gst-plugins-base libraries at compile time.</p> 190</div> 191<hr> 192<div class="refsect2"> 193<a name="GST-PLUGINS-BASE-VERSION-NANO:CAPS"></a><h3>GST_PLUGINS_BASE_VERSION_NANO</h3> 194<pre class="programlisting">#define GST_PLUGINS_BASE_VERSION_NANO (0) 195</pre> 196<p>The nano version of GStreamer's gst-plugins-base libraries at compile time. 197Actual releases have 0, GIT versions have 1, prerelease versions have 2-...</p> 198</div> 199</div> 200</div> 201<div class="footer"> 202<hr>Generated by GTK-Doc V1.28</div> 203</body> 204</html>