… | |
… | |
4 | <head> |
4 | <head> |
5 | <title>libev</title> |
5 | <title>libev</title> |
6 | <meta name="description" content="Pod documentation for libev" /> |
6 | <meta name="description" content="Pod documentation for libev" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
9 | <meta name="created" content="Sun Dec 9 20:30:11 2007" /> |
9 | <meta name="created" content="Sun Dec 9 20:45:16 2007" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
12 | <body> |
12 | <body> |
13 | <div class="pod"> |
13 | <div class="pod"> |
14 | <!-- INDEX START --> |
14 | <!-- INDEX START --> |
… | |
… | |
185 | you actually want to know.</p> |
185 | you actually want to know.</p> |
186 | </dd> |
186 | </dd> |
187 | <dt>int ev_version_major ()</dt> |
187 | <dt>int ev_version_major ()</dt> |
188 | <dt>int ev_version_minor ()</dt> |
188 | <dt>int ev_version_minor ()</dt> |
189 | <dd> |
189 | <dd> |
190 | <p>You can find out the major and minor version numbers of the library |
190 | <p>You can find out the major and minor API/ABI version numbers of the library |
191 | you linked against by calling the functions <code>ev_version_major</code> and |
191 | you linked against by calling the functions <code>ev_version_major</code> and |
192 | <code>ev_version_minor</code>. If you want, you can compare against the global |
192 | <code>ev_version_minor</code>. If you want, you can compare against the global |
193 | symbols <code>EV_VERSION_MAJOR</code> and <code>EV_VERSION_MINOR</code>, which specify the |
193 | symbols <code>EV_VERSION_MAJOR</code> and <code>EV_VERSION_MINOR</code>, which specify the |
194 | version of the library your program was compiled against.</p> |
194 | version of the library your program was compiled against.</p> |
|
|
195 | <p>These version numbers refer to the API and ABI version of the library, not |
|
|
196 | the release version.</p> |
195 | <p>Usually, it's a good idea to terminate if the major versions mismatch, |
197 | <p>Usually, it's a good idea to terminate if the major versions mismatch, |
196 | as this indicates an incompatible change. Minor versions are usually |
198 | as this indicates an incompatible change. Minor versions are usually |
197 | compatible to older versions, so a larger minor version alone is usually |
199 | compatible to older versions, so a larger minor version alone is usually |
198 | not a problem.</p> |
200 | not a problem.</p> |
199 | <p>Example: Make sure we haven't accidentally been linked against the wrong |
201 | <p>Example: Make sure we haven't accidentally been linked against the wrong |
200 | version.</p> |
202 | version.</p> |
201 | <pre> assert (("libev version mismatch", |
203 | <pre> assert (("libev version mismatch", |