You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

107 lines
3.4 KiB

  1. /*
  2. * Copyright (C) 2009-2010 Nick Schermer <nick@xfce.org>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 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. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. */
  18. #if !defined(LIBXFCE4PANEL_INSIDE_LIBXFCE4PANEL_H) && !defined(LIBXFCE4PANEL_COMPILATION)
  19. #error "Only <libxfce4panel/libxfce4panel.h> can be included directly, this file may disappear or change contents"
  20. #endif
  21. #ifndef __LIBXFCE4PANEL_CONFIG_H__
  22. #define __LIBXFCE4PANEL_CONFIG_H__
  23. #include <glib-object.h>
  24. G_BEGIN_DECLS
  25. /**
  26. * LIBXFCE4PANEL_VERSION:
  27. *
  28. * String with the full version of the panel.
  29. *
  30. * Since: 4.8
  31. **/
  32. #define LIBXFCE4PANEL_VERSION ("@LIBXFCE4PANEL_VERSION@")
  33. /**
  34. * LIBXFCE4PANEL_MAJOR_VERSION:
  35. *
  36. * The major version number of the libxfce4panel library.
  37. * Like libxfce4panel_major_version, but from the headers used at
  38. * application compile time, rather than from the library
  39. * linked against at application run time.
  40. *
  41. * Since: 4.8
  42. **/
  43. #define LIBXFCE4PANEL_MAJOR_VERSION (@LIBXFCE4PANEL_VERSION_MAJOR@)
  44. /**
  45. * LIBXFCE4PANEL_MINOR_VERSION:
  46. *
  47. * The minor version number of the libxfce4panel library.
  48. * Like libxfce4panel_minor_version, but from the headers used at
  49. * application compile time, rather than from the library
  50. * linked against at application run time.
  51. *
  52. * Since: 4.8
  53. **/
  54. #define LIBXFCE4PANEL_MINOR_VERSION (@LIBXFCE4PANEL_VERSION_MINOR@)
  55. /**
  56. * LIBXFCE4PANEL_MICRO_VERSION:
  57. *
  58. * The micro version number of the libxfce4panel library.
  59. * Like libxfce4panel_micro_version, but from the headers used at
  60. * application compile time, rather than from the library
  61. * linked against at application run time
  62. *
  63. * Since: 4.8
  64. **/
  65. #define LIBXFCE4PANEL_MICRO_VERSION (@LIBXFCE4PANEL_VERSION_MICRO@)
  66. /**
  67. * LIBXFCE4PANEL_CHECK_VERSION:
  68. * @major : the major version number.
  69. * @minor : the minor version number.
  70. * @micro : the micro version number.
  71. *
  72. * Checks the version of the libxfce4panel library.
  73. *
  74. * Returns: %TRUE if the version of the libxfce4panel header files is
  75. * the same as or newer than the passed-in version.
  76. *
  77. * Since: 4.8
  78. **/
  79. #define LIBXFCE4PANEL_CHECK_VERSION(major,minor,micro) \
  80. (LIBXFCE4PANEL_MAJOR_VERSION > (major) \
  81. || (LIBXFCE4PANEL_MAJOR_VERSION == (major) \
  82. && LIBXFCE4PANEL_MINOR_VERSION > (minor)) \
  83. || (LIBXFCE4PANEL_MAJOR_VERSION == (major) \
  84. && LIBXFCE4PANEL_MINOR_VERSION == (minor) \
  85. && LIBXFCE4PANEL_MICRO_VERSION >= (micro)))
  86. extern const guint libxfce4panel_major_version;
  87. extern const guint libxfce4panel_minor_version;
  88. extern const guint libxfce4panel_micro_version;
  89. const gchar *libxfce4panel_check_version (guint required_major,
  90. guint required_minor,
  91. guint required_micro);
  92. G_END_DECLS
  93. #endif /* !__LIBXFCE4PANEL_CONFIG_H__ */