… | |
… | |
117 | |
117 | |
118 | =item int ev_version_major () |
118 | =item int ev_version_major () |
119 | |
119 | |
120 | =item int ev_version_minor () |
120 | =item int ev_version_minor () |
121 | |
121 | |
122 | You can find out the major and minor API/ABI version numbers of the library |
122 | You can find out the major and minor ABI version numbers of the library |
123 | you linked against by calling the functions C<ev_version_major> and |
123 | you linked against by calling the functions C<ev_version_major> and |
124 | C<ev_version_minor>. If you want, you can compare against the global |
124 | C<ev_version_minor>. If you want, you can compare against the global |
125 | symbols C<EV_VERSION_MAJOR> and C<EV_VERSION_MINOR>, which specify the |
125 | symbols C<EV_VERSION_MAJOR> and C<EV_VERSION_MINOR>, which specify the |
126 | version of the library your program was compiled against. |
126 | version of the library your program was compiled against. |
127 | |
127 | |
128 | These version numbers refer to the API and ABI version of the library, not |
128 | These version numbers refer to the ABI version of the library, not the |
129 | the release version. |
129 | release version. |
130 | |
130 | |
131 | Usually, it's a good idea to terminate if the major versions mismatch, |
131 | Usually, it's a good idea to terminate if the major versions mismatch, |
132 | as this indicates an incompatible change. Minor versions are usually |
132 | as this indicates an incompatible change. Minor versions are usually |
133 | compatible to older versions, so a larger minor version alone is usually |
133 | compatible to older versions, so a larger minor version alone is usually |
134 | not a problem. |
134 | not a problem. |