Commit 92aa3d5d authored by Olivier Crête's avatar Olivier Crête

version: Add NICE_CHECK_VERSION to the documentation

parent e6a8215a
...@@ -59,6 +59,7 @@ nice_agent_get_component_state ...@@ -59,6 +59,7 @@ nice_agent_get_component_state
nice_agent_close_async nice_agent_close_async
nice_agent_consent_lost nice_agent_consent_lost
nice_component_state_to_string nice_component_state_to_string
NICE_CHECK_VERSION
<SUBSECTION Standard> <SUBSECTION Standard>
NICE_AGENT NICE_AGENT
NICE_IS_AGENT NICE_IS_AGENT
......
...@@ -41,7 +41,7 @@ gnome.gtkdoc('libnice', ...@@ -41,7 +41,7 @@ gnome.gtkdoc('libnice',
main_xml: 'libnice-docs.xml', main_xml: 'libnice-docs.xml',
namespace: 'nice', namespace: 'nice',
mode: 'none', mode: 'none',
src_dir: [agent_include, stun_include], src_dir: [agent_include, stun_include, nice_include],
content_files: fake_makefile, content_files: fake_makefile,
dependencies: libnice_dep, dependencies: libnice_dep,
scan_args: [ scan_args: [
......
...@@ -41,6 +41,18 @@ ...@@ -41,6 +41,18 @@
#include "nice-version.h" #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) \ #define NICE_CHECK_VERSION(major, minor, micro) \
(NICE_VERSION_MAJOR > (major) || \ (NICE_VERSION_MAJOR > (major) || \
(NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR > (minor)) || \ (NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR > (minor)) || \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment