diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2022-05-26 14:23:31 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2022-05-26 14:23:31 -0400 |
commit | 92aa3d5dcbe67ef1d7e0abe06cc400f9442dbc45 (patch) | |
tree | 11ec67c911362fd9e7b5e31b7d73974d63908915 /nice/nice.h | |
parent | e6a8215a90f314f892910c73a2d9424f0ec19ba6 (diff) | |
download | libnice-92aa3d5dcbe67ef1d7e0abe06cc400f9442dbc45.tar.gz |
version: Add NICE_CHECK_VERSION to the documentation
Diffstat (limited to 'nice/nice.h')
-rw-r--r-- | nice/nice.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nice/nice.h b/nice/nice.h index 74a7e74..edad400 100644 --- a/nice/nice.h +++ b/nice/nice.h @@ -41,6 +41,18 @@ #include "nice-version.h" +/** + * NICE_CHECK_VERSION: + * @major: The major numbe of the version + * @minor: The major numbe of the version + * @micro: The major numbe of the version + * + * Macro that returns TRUE if the version if libnice that you are compiling + * against is greater or equal to the argument + * + * Since: 0.1.20 + */ + #define NICE_CHECK_VERSION(major, minor, micro) \ (NICE_VERSION_MAJOR > (major) || \ (NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR > (minor)) || \ |