summaryrefslogtreecommitdiffstats
path: root/src/pulse
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-05-26 22:31:05 +0200
committerLennart Poettering <lennart@poettering.net>2009-05-26 22:31:05 +0200
commit699bd542f3aa51a82bcf3e60c63412c156ea1ab6 (patch)
tree4f0db813a8af20551a31551a43f0d4e587e68198 /src/pulse
parente8f7eb616a40dbb66c201509e459e3a8bd5f3e02 (diff)
libpulse: introduce PA_CHECK_VERSION macro
Diffstat (limited to 'src/pulse')
-rw-r--r--src/pulse/version.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pulse/version.h.in b/src/pulse/version.h.in
index 566dd55e..3143e98e 100644
--- a/src/pulse/version.h.in
+++ b/src/pulse/version.h.in
@@ -60,6 +60,13 @@ const char* pa_get_library_version(void);
/** The micro version of PA. \since 0.9.15 */
#define PA_MICRO @PA_MICRO@
+/** Evaluates to TRUE if the PulseAudio library version is equal or
+ * newer than the specified. \since 0.9.16 */
+#define PA_CHECK_VERSION(major,minor,micro) \
+ ((PA_MAJOR > (major)) || \
+ (PA_MAJOR == (major) && CA_MINOR > (minor)) || \
+ (PA_MAJOR == (major) && CA_MINOR == (minor) && CA_MICRO >= (micro)))
+
PA_C_DECL_END
#endif