[libsoup] soup-version.h: add 2.52 macros
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-version.h: add 2.52 macros
- Date: Mon, 22 Jun 2015 21:31:18 +0000 (UTC)
commit 94fc7d894aa0954a08985d7d97d1c2f4939c9834
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jun 18 14:55:30 2015 +0200
soup-version.h: add 2.52 macros
https://bugzilla.gnome.org/show_bug.cgi?id=637387
docs/reference/libsoup-2.4-sections.txt | 2 ++
libsoup/soup-version.c | 10 ++++++++++
libsoup/soup-version.h.in | 7 +++++++
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 306fa6f..fd7e5c8 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 478eb4e..99c3b53 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 148b5e9..441957d 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]