From fba08262caa6038971e60e669aeb6ef2ec9ab821 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 22 Nov 2015 11:17:38 -0500 Subject: soup-version.h.in: add 2.54 macros --- libsoup/soup-version.h.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/libsoup/soup-version.h.in b/libsoup/soup-version.h.in index b7ea89e4..e085d048 100644 --- a/libsoup/soup-version.h.in +++ b/libsoup/soup-version.h.in @@ -62,6 +62,7 @@ G_BEGIN_DECLS #define SOUP_VERSION_2_48 (G_ENCODE_VERSION (2, 48)) #define SOUP_VERSION_2_50 (G_ENCODE_VERSION (2, 50)) #define SOUP_VERSION_2_52 (G_ENCODE_VERSION (2, 52)) +#define SOUP_VERSION_2_54 (G_ENCODE_VERSION (2, 54)) /* evaluates to the current stable version; for development cycles, * this means the next stable target @@ -314,6 +315,20 @@ G_BEGIN_DECLS # define SOUP_AVAILABLE_IN_2_52 _SOUP_EXTERN #endif +#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_54 +# define SOUP_DEPRECATED_IN_2_54 G_DEPRECATED +# define SOUP_DEPRECATED_IN_2_54_FOR(f) G_DEPRECATED_FOR(f) +#else +# define SOUP_DEPRECATED_IN_2_54 +# define SOUP_DEPRECATED_IN_2_54_FOR(f) +#endif + +#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_54 +# define SOUP_AVAILABLE_IN_2_54 G_UNAVAILABLE(2, 54) _SOUP_EXTERN +#else +# define SOUP_AVAILABLE_IN_2_54 _SOUP_EXTERN +#endif + SOUP_AVAILABLE_IN_2_42 guint soup_get_major_version (void); -- cgit v1.2.1