version.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef fooversionhfoo /*-*-C-*-*/
  2. #define fooversionhfoo
  3. /***
  4. This file is part of PulseAudio.
  5. Copyright 2004-2006 Lennart Poettering
  6. Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
  7. PulseAudio is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU Lesser General Public License as published
  9. by the Free Software Foundation; either version 2 of the License,
  10. or (at your option) any later version.
  11. PulseAudio is distributed in the hope that it will be useful, but
  12. WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. General Public License for more details.
  15. You should have received a copy of the GNU Lesser General Public License
  16. along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
  17. ***/
  18. /* WARNING: Make sure to edit the real source file version.h.in! */
  19. #include <pulse/cdecl.h>
  20. /** \file
  21. * Define header version */
  22. PA_C_DECL_BEGIN
  23. /** Return the version of the header files. Keep in mind that this is
  24. a macro and not a function, so it is impossible to get the pointer of
  25. it. */
  26. #define pa_get_headers_version() ("9.0.0")
  27. /** Return the version of the library the current application is
  28. * linked to. */
  29. const char* pa_get_library_version(void);
  30. /** The current API version. Version 6 relates to Polypaudio
  31. * 0.6. Prior versions (i.e. Polypaudio 0.5.1 and older) have
  32. * PA_API_VERSION undefined. Please note that this is only ever
  33. * increased on incompatible API changes! */
  34. #define PA_API_VERSION 12
  35. /** The current protocol version. Version 8 relates to Polypaudio
  36. * 0.8/PulseAudio 0.9. */
  37. #define PA_PROTOCOL_VERSION 31
  38. /** The major version of PA. \since 0.9.15 */
  39. #define PA_MAJOR 9
  40. /** The minor version of PA. \since 0.9.15 */
  41. #define PA_MINOR 0
  42. /** The micro version of PA (will always be 0 from v1.0 onwards). \since 0.9.15 */
  43. #define PA_MICRO 0
  44. /** Evaluates to TRUE if the PulseAudio library version is equal or
  45. * newer than the specified. \since 0.9.16 */
  46. #define PA_CHECK_VERSION(major,minor,micro) \
  47. ((PA_MAJOR > (major)) || \
  48. (PA_MAJOR == (major) && PA_MINOR > (minor)) || \
  49. (PA_MAJOR == (major) && PA_MINOR == (minor) && PA_MICRO >= (micro)))
  50. PA_C_DECL_END
  51. #endif