diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/canberra.h | 24 | 
1 files changed, 24 insertions, 0 deletions
diff --git a/src/canberra.h b/src/canberra.h index b4ceb27..c3e55c2 100644 --- a/src/canberra.h +++ b/src/canberra.h @@ -35,6 +35,30 @@ extern "C" {  #endif  /** + * CA_MAJOR: + * + * Evaluates to the major version number of libcanberra. + */ +#define CA_MAJOR (@CA_MAJOR@) + +/** + * CA_MINOR: + * + * Evaluates to the minor version number of libcanberra. + */ +#define CA_MINOR (@CA_MINOR@) + +/** + * CA_CHECK_VERSION: + * + * Evaluates to TRUE when the library version is newer than the + * specified parameters. + */ +#define CA_CHECK_VERSION(major,minor)                           \ +    (CA_MAJOR > (major) ||                                      \ +     (CA_MAJOR == (major) && CA_MINOR >= (minor))) + +/**   * CA_PROP_MEDIA_NAME:   *   * A name describing the media being played. Localized if possible and applicable.  | 
