[libsoup/wip/keepalive: 1/2] Add 2.58 version macros
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/keepalive: 1/2] Add 2.58 version macros
- Date: Wed, 19 Oct 2016 16:22:25 +0000 (UTC)
commit 8cd0b9fc6a98084ade3cac5751ec141f4b781b64
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Oct 19 17:31:27 2016 +0200
Add 2.58 version macros
libsoup/soup-version.h.in | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-version.h.in b/libsoup/soup-version.h.in
index ac0d7ad..27ae751 100644
--- a/libsoup/soup-version.h.in
+++ b/libsoup/soup-version.h.in
@@ -64,6 +64,7 @@ G_BEGIN_DECLS
#define SOUP_VERSION_2_52 (G_ENCODE_VERSION (2, 52))
#define SOUP_VERSION_2_54 (G_ENCODE_VERSION (2, 54))
#define SOUP_VERSION_2_56 (G_ENCODE_VERSION (2, 56))
+#define SOUP_VERSION_2_58 (G_ENCODE_VERSION (2, 58))
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
@@ -344,6 +345,20 @@ G_BEGIN_DECLS
# define SOUP_AVAILABLE_IN_2_56 _SOUP_EXTERN
#endif
+#if SOUP_VERSION_MIN_REQUIRED >= SOUP_VERSION_2_58
+# define SOUP_DEPRECATED_IN_2_58 G_DEPRECATED
+# define SOUP_DEPRECATED_IN_2_58_FOR(f) G_DEPRECATED_FOR(f)
+#else
+# define SOUP_DEPRECATED_IN_2_58
+# define SOUP_DEPRECATED_IN_2_58_FOR(f)
+#endif
+
+#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_58
+# define SOUP_AVAILABLE_IN_2_58 G_UNAVAILABLE(2, 58) _SOUP_EXTERN
+#else
+# define SOUP_AVAILABLE_IN_2_58 _SOUP_EXTERN
+#endif
+
SOUP_AVAILABLE_IN_2_42
guint soup_get_major_version (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]