summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-06-18 14:55:30 +0200
committerDan Winship <danw@gnome.org>2015-06-22 17:26:21 -0400
commit94fc7d894aa0954a08985d7d97d1c2f4939c9834 (patch)
treefb453500a4c7440f0af43a64834afda4ba3bca8f
parentb4120b586fcfd1035ae1b838884dd993a9449a4e (diff)
downloadlibsoup-94fc7d894aa0954a08985d7d97d1c2f4939c9834.tar.gz
soup-version.h: add 2.52 macros
https://bugzilla.gnome.org/show_bug.cgi?id=637387
-rw-r--r--docs/reference/libsoup-2.4-sections.txt2
-rw-r--r--libsoup/soup-version.c10
-rw-r--r--libsoup/soup-version.h.in7
3 files changed, 19 insertions, 0 deletions
diff --git a/docs/reference/libsoup-2.4-sections.txt b/docs/reference/libsoup-2.4-sections.txt
index 306fa6f2..fd7e5c83 100644
--- a/docs/reference/libsoup-2.4-sections.txt
+++ b/docs/reference/libsoup-2.4-sections.txt
@@ -1260,6 +1260,7 @@ SOUP_VERSION_2_44
SOUP_VERSION_2_46
SOUP_VERSION_2_48
SOUP_VERSION_2_50
+SOUP_VERSION_2_52
<SUBSECTION Private>
SOUP_AVAILABLE_IN_2_24
SOUP_AVAILABLE_IN_2_26
@@ -1275,6 +1276,7 @@ SOUP_AVAILABLE_IN_2_44
SOUP_AVAILABLE_IN_2_46
SOUP_AVAILABLE_IN_2_48
SOUP_AVAILABLE_IN_2_50
+SOUP_AVAILABLE_IN_2_52
SOUP_DEPRECATED_IN_2_24
SOUP_DEPRECATED_IN_2_24_FOR
SOUP_DEPRECATED_IN_2_26
diff --git a/libsoup/soup-version.c b/libsoup/soup-version.c
index 478eb4eb..99c3b530 100644
--- a/libsoup/soup-version.c
+++ b/libsoup/soup-version.c
@@ -325,3 +325,13 @@ soup_check_version (guint major,
*
* Since: 2.50
*/
+
+/**
+ * SOUP_VERSION_2_52:
+ *
+ * A macro that evaluates to the 2.52 version of libsoup, in a format
+ * that can be used by %SOUP_VERSION_MIN_REQUIRED and
+ * %SOUP_VERSION_MAX_ALLOWED.
+ *
+ * Since: 2.52
+ */
diff --git a/libsoup/soup-version.h.in b/libsoup/soup-version.h.in
index 148b5e9a..441957d8 100644
--- a/libsoup/soup-version.h.in
+++ b/libsoup/soup-version.h.in
@@ -50,6 +50,7 @@ gboolean soup_check_version (guint major,
#define SOUP_VERSION_2_46 (SOUP_ENCODE_VERSION (2, 46))
#define SOUP_VERSION_2_48 (SOUP_ENCODE_VERSION (2, 48))
#define SOUP_VERSION_2_50 (SOUP_ENCODE_VERSION (2, 50))
+#define SOUP_VERSION_2_52 (SOUP_ENCODE_VERSION (2, 52))
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
@@ -286,6 +287,12 @@ gboolean soup_check_version (guint major,
# define SOUP_AVAILABLE_IN_2_50
#endif
+#if SOUP_VERSION_MAX_ALLOWED < SOUP_VERSION_2_52
+# define SOUP_AVAILABLE_IN_2_52 GLIB_UNAVAILABLE(2, 52)
+#else
+# define SOUP_AVAILABLE_IN_2_52
+#endif
+
G_END_DECLS
#endif /* SOUP_VERSION_H */