gdk-pixbuf-features.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
  2. #error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
  3. #endif
  4. #ifndef GDK_PIXBUF_FEATURES_H
  5. #define GDK_PIXBUF_FEATURES_H 1
  6. #include <glib.h>
  7. /**
  8. * SECTION:initialization_versions
  9. * @Short_description:
  10. Library version numbers.
  11. * @Title: Initialization and Versions
  12. *
  13. * These macros and variables let you check the version of gdk-pixbuf
  14. * you're linking against.
  15. */
  16. /**
  17. * GDK_PIXBUF_MAJOR:
  18. *
  19. * Major version of gdk-pixbuf library, that is the "0" in
  20. * "0.8.2" for example.
  21. */
  22. /**
  23. * GDK_PIXBUF_MINOR:
  24. *
  25. * Minor version of gdk-pixbuf library, that is the "8" in
  26. * "0.8.2" for example.
  27. */
  28. /**
  29. * GDK_PIXBUF_MICRO:
  30. *
  31. * Micro version of gdk-pixbuf library, that is the "2" in
  32. * "0.8.2" for example.
  33. */
  34. /**
  35. * GDK_PIXBUF_VERSION:
  36. *
  37. * Contains the full version of the gdk-pixbuf header as a string.
  38. * This is the version being compiled against; contrast with
  39. * #gdk_pixbuf_version.
  40. */
  41. #define GDK_PIXBUF_MAJOR (2)
  42. #define GDK_PIXBUF_MINOR (34)
  43. #define GDK_PIXBUF_MICRO (0)
  44. #define GDK_PIXBUF_VERSION "2.34.0"
  45. /* We prefix variable declarations so they can
  46. * properly get exported/imported from Windows DLLs.
  47. */
  48. #ifdef G_PLATFORM_WIN32
  49. # ifdef GDK_PIXBUF_STATIC_COMPILATION
  50. # define GDK_PIXBUF_VAR extern
  51. # else /* !GDK_PIXBUF_STATIC_COMPILATION */
  52. # ifdef GDK_PIXBUF_C_COMPILATION
  53. # ifdef DLL_EXPORT
  54. # define GDK_PIXBUF_VAR __declspec(dllexport)
  55. # else /* !DLL_EXPORT */
  56. # define GDK_PIXBUF_VAR extern
  57. # endif /* !DLL_EXPORT */
  58. # else /* !GDK_PIXBUF_C_COMPILATION */
  59. # define GDK_PIXBUF_VAR extern __declspec(dllimport)
  60. # endif /* !GDK_PIXBUF_C_COMPILATION */
  61. # endif /* !GDK_PIXBUF_STATIC_COMPILATION */
  62. #else /* !G_PLATFORM_WIN32 */
  63. # define GDK_PIXBUF_VAR extern
  64. #endif /* !G_PLATFORM_WIN32 */
  65. /**
  66. * gdk_pixbuf_major_version:
  67. *
  68. * The major version number of the gdk-pixbuf library. (e.g. in
  69. * gdk-pixbuf version 1.2.5 this is 1.)
  70. *
  71. *
  72. * This variable is in the library, so represents the
  73. * gdk-pixbuf library you have linked against. Contrast with the
  74. * #GDK_PIXBUF_MAJOR macro, which represents the major version of the
  75. * gdk-pixbuf headers you have included.
  76. */
  77. /**
  78. * gdk_pixbuf_minor_version:
  79. *
  80. * The minor version number of the gdk-pixbuf library. (e.g. in
  81. * gdk-pixbuf version 1.2.5 this is 2.)
  82. *
  83. *
  84. * This variable is in the library, so represents the
  85. * gdk-pixbuf library you have linked against. Contrast with the
  86. * #GDK_PIXBUF_MINOR macro, which represents the minor version of the
  87. * gdk-pixbuf headers you have included.
  88. */
  89. /**
  90. * gdk_pixbuf_micro_version:
  91. *
  92. * The micro version number of the gdk-pixbuf library. (e.g. in
  93. * gdk-pixbuf version 1.2.5 this is 5.)
  94. *
  95. *
  96. * This variable is in the library, so represents the
  97. * gdk-pixbuf library you have linked against. Contrast with the
  98. * #GDK_PIXBUF_MICRO macro, which represents the micro version of the
  99. * gdk-pixbuf headers you have included.
  100. */
  101. /**
  102. * gdk_pixbuf_version:
  103. *
  104. * Contains the full version of the gdk-pixbuf library as a string.
  105. * This is the version currently in use by a running program.
  106. */
  107. GDK_PIXBUF_VAR const guint gdk_pixbuf_major_version;
  108. GDK_PIXBUF_VAR const guint gdk_pixbuf_minor_version;
  109. GDK_PIXBUF_VAR const guint gdk_pixbuf_micro_version;
  110. GDK_PIXBUF_VAR const char *gdk_pixbuf_version;
  111. #endif /* GDK_PIXBUF_FEATURES_H */