gstpluginsbaseversion.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* GStreamer base plugins libraries version information
  2. * Copyright (C) 2010 Tim-Philipp Müller <tim centricular net>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Library General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Library General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  17. * Boston, MA 02110-1301, USA.
  18. */
  19. #ifndef __GST_PLUGINS_BASE_VERSION_H__
  20. #define __GST_PLUGINS_BASE_VERSION_H__
  21. #include <glib.h>
  22. G_BEGIN_DECLS
  23. /**
  24. * GST_PLUGINS_BASE_VERSION_MAJOR:
  25. *
  26. * The major version of GStreamer's gst-plugins-base libraries at compile time.
  27. */
  28. #define GST_PLUGINS_BASE_VERSION_MAJOR (1)
  29. /**
  30. * GST_PLUGINS_BASE_VERSION_MINOR:
  31. *
  32. * The minor version of GStreamer's gst-plugins-base libraries at compile time.
  33. */
  34. #define GST_PLUGINS_BASE_VERSION_MINOR (4)
  35. /**
  36. * GST_PLUGINS_BASE_VERSION_MICRO:
  37. *
  38. * The micro version of GStreamer's gst-plugins-base libraries at compile time.
  39. */
  40. #define GST_PLUGINS_BASE_VERSION_MICRO (5)
  41. /**
  42. * GST_PLUGINS_BASE_VERSION_NANO:
  43. *
  44. * The nano version of GStreamer's gst-plugins-base libraries at compile time.
  45. * Actual releases have 0, GIT versions have 1, prerelease versions have 2-...
  46. */
  47. #define GST_PLUGINS_BASE_VERSION_NANO (0)
  48. /**
  49. * GST_CHECK_PLUGIN_BASE_VERSION:
  50. * @major: a number indicating the major version
  51. * @minor: a number indicating the minor version
  52. * @micro: a number indicating the micro version
  53. *
  54. * Check whether a GStreamer's gst-plugins-base libraries' version equal to
  55. * or greater than major.minor.micro is present.
  56. */
  57. #define GST_CHECK_PLUGINS_BASE_VERSION(major,minor,micro) \
  58. (GST_PLUGINS_BASE_VERSION_MAJOR > (major) || \
  59. (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR > (minor)) || \
  60. (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \
  61. GST_PLUGINS_BASE_VERSION_MICRO >= (micro)) || \
  62. (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \
  63. GST_PLUGINS_BASE_VERSION_MICRO + 1 == (micro) && GST_PLUGINS_BASE_VERSION_NANO > 0))
  64. void gst_plugins_base_version (guint *major, guint *minor, guint *micro, guint *nano);
  65. gchar * gst_plugins_base_version_string (void);
  66. G_END_DECLS
  67. #endif /* __GST_PLUGINS_BASE_VERSION_H__ */