File: //usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Initialization and Versions</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="The gdk-pixbuf Library">
<link rel="up" href="rn01.html" title="API Reference">
<link rel="prev" href="rn01.html" title="API Reference">
<link rel="next" href="gdk-pixbuf-gdk-pixbuf.html" title="The GdkPixbuf Structure">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="reference" href="rn01.html" title="API Reference">
<link rel="reference" href="rn02.html" title="Tools Reference">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="appendix" href="apa.html" title="Appendix A. Porting applications from Imlib to gdk-pixbuf">
<link rel="appendix" href="license.html" title="Appendix B. License">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="rn01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">The <span class="application">gdk-pixbuf</span> Library</th>
<td><a accesskey="n" href="gdk-pixbuf-gdk-pixbuf.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3045701" class="shortcut">Top</a>
 | 
<a href="#id3045327" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gdk-pixbuf-Versioning"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3045701"></a><span class="refentrytitle">Initialization and Versions</span>
</h2>
<p>Initialization and Versions —
Library version numbers.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <gdk-pixbuf/gdk-pixbuf.h>
extern const char *<a href="gdk-pixbuf-Versioning.html#gdk-pixbuf-version">gdk_pixbuf_version</a>;
extern const guint <a href="gdk-pixbuf-Versioning.html#gdk-pixbuf-major-version">gdk_pixbuf_major_version</a>;
extern const guint <a href="gdk-pixbuf-Versioning.html#gdk-pixbuf-minor-version">gdk_pixbuf_minor_version</a>;
extern const guint <a href="gdk-pixbuf-Versioning.html#gdk-pixbuf-micro-version">gdk_pixbuf_micro_version</a>;
#define <a href="gdk-pixbuf-Versioning.html#GDK-PIXBUF-VERSION:CAPS">GDK_PIXBUF_VERSION</a>
#define <a href="gdk-pixbuf-Versioning.html#GDK-PIXBUF-MAJOR:CAPS">GDK_PIXBUF_MAJOR</a>
#define <a href="gdk-pixbuf-Versioning.html#GDK-PIXBUF-MINOR:CAPS">GDK_PIXBUF_MINOR</a>
#define <a href="gdk-pixbuf-Versioning.html#GDK-PIXBUF-MICRO:CAPS">GDK_PIXBUF_MICRO</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3045327"></a><h2>Description</h2>
<p>
These macros and variables let you check the version of <span class="application">gdk-pixbuf</span>
you're linking against.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3045348"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3045359"></a><h3>
<a name="gdk-pixbuf-version"></a>gdk_pixbuf_version</h3>
<a class="indexterm" name="id3089650"></a><pre class="programlisting">extern const char *gdk_pixbuf_version;
</pre>
<p>
Contains the full version of the <span class="application">gdk-pixbuf</span> library as a string.
This is the version currently in use by a running program.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3089674"></a><h3>
<a name="gdk-pixbuf-major-version"></a>gdk_pixbuf_major_version</h3>
<a class="indexterm" name="id3089686"></a><pre class="programlisting">extern const guint gdk_pixbuf_major_version;
</pre>
<p>
The major version number of the <span class="application">gdk-pixbuf</span> library. (e.g. in
<span class="application">gdk-pixbuf</span> version 1.2.5 this is 1.)
</p>
<p>
This variable is in the library, so represents the
<span class="application">gdk-pixbuf</span> library you have linked against. Contrast with the
<a href="gdk-pixbuf-Versioning.html#GDK-PIXBUF-MAJOR:CAPS"><span class="type">GDK_PIXBUF_MAJOR</span></a> macro, which represents the major version of the
<span class="application">gdk-pixbuf</span> headers you have included.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3089743"></a><h3>
<a name="gdk-pixbuf-minor-version"></a>gdk_pixbuf_minor_version</h3>
<a class="indexterm" name="id3089755"></a><pre class="programlisting">extern const guint gdk_pixbuf_minor_version;
</pre>
<p>
The minor version number of the <span class="application">gdk-pixbuf</span> library. (e.g. in
<span class="application">gdk-pixbuf</span> version 1.2.5 this is 2.)
</p>
<p>
This variable is in the library, so represents the
<span class="application">gdk-pixbuf</span> library you have linked against. Contrast with the
<a href="gdk-pixbuf-Versioning.html#GDK-PIXBUF-MINOR:CAPS"><span class="type">GDK_PIXBUF_MINOR</span></a> macro, which represents the minor version of the
<span class="application">gdk-pixbuf</span> headers you have included.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3089812"></a><h3>
<a name="gdk-pixbuf-micro-version"></a>gdk_pixbuf_micro_version</h3>
<a class="indexterm" name="id3089824"></a><pre class="programlisting">extern const guint gdk_pixbuf_micro_version;
</pre>
<p>
The micro version number of the <span class="application">gdk-pixbuf</span> library. (e.g. in
<span class="application">gdk-pixbuf</span> version 1.2.5 this is 5.)
</p>
<p>
This variable is in the library, so represents the
<span class="application">gdk-pixbuf</span> library you have linked against. Contrast with the
<a href="gdk-pixbuf-Versioning.html#GDK-PIXBUF-MICRO:CAPS"><span class="type">GDK_PIXBUF_MICRO</span></a> macro, which represents the micro version of the
<span class="application">gdk-pixbuf</span> headers you have included.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3089880"></a><h3>
<a name="GDK-PIXBUF-VERSION:CAPS"></a>GDK_PIXBUF_VERSION</h3>
<a class="indexterm" name="id3089893"></a><pre class="programlisting">#define GDK_PIXBUF_VERSION "2.10.4"
</pre>
<p>
Contains the full version of the <span class="application">gdk-pixbuf</span> header as a string.
This is the version being compiled against; contrast with
<a href="gdk-pixbuf-Versioning.html#gdk-pixbuf-version"><span class="type">gdk_pixbuf_version</span></a>.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3089924"></a><h3>
<a name="GDK-PIXBUF-MAJOR:CAPS"></a>GDK_PIXBUF_MAJOR</h3>
<a class="indexterm" name="id3089937"></a><pre class="programlisting">#define GDK_PIXBUF_MAJOR (2)
</pre>
<p>
Major version of <span class="application">gdk-pixbuf</span> library, that is the first "0" in
"0.8.0" for example.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3089960"></a><h3>
<a name="GDK-PIXBUF-MINOR:CAPS"></a>GDK_PIXBUF_MINOR</h3>
<a class="indexterm" name="id3089972"></a><pre class="programlisting">#define GDK_PIXBUF_MINOR (10)
</pre>
<p>
Minor version of <span class="application">gdk-pixbuf</span> library, that is the "8" in
"0.8.0" for example.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3089995"></a><h3>
<a name="GDK-PIXBUF-MICRO:CAPS"></a>GDK_PIXBUF_MICRO</h3>
<a class="indexterm" name="id3090007"></a><pre class="programlisting">#define GDK_PIXBUF_MICRO (4)
</pre>
<p>
Micro version of <span class="application">gdk-pixbuf</span> library, that is the last "0" in
"0.8.0" for example.
</p>
</div>
</div>
</div>
</body>
</html>