mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
libpulse: introduce PA_CHECK_VERSION macro
This commit is contained in:
parent
e8f7eb616a
commit
699bd542f3
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue