Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TingPing committed Sep 18, 2021
1 parent 23c413f commit 63f778a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
16 changes: 16 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
Changes in libsoup from 2.99.9 to 3.0.0:

* Remove unused dependency on libxml [Patrick Griffis]

* Use G_DECLARE_FINAL_TYPE when applicable and bump GLib dependency
to 2.69.1 [Patrick Griffis]

* Add PyGObject overrides for SoupMessageHeaders to behave like a dict [Patrick Griffis]

* Fix soup_message_add_status_code_handler() in Vala [Rico Tzschichholz]

* Ensure that all header values are valid UTF-8, other encodings are not
supported [Patrick Griffis]

* Support Content-Disposition headers missing a disposition-type [Patrick Griffis]

Changes in libsoup from 2.99.8 to 2.99.9:

* Make soup_message_set_method() public API [Carlos Garcia Campos]
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/libsoup-3.0-docs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<bookinfo>
<title>libsoup Reference Manual</title>
<releaseinfo>
This documentation is for libsoup 3.0 which is in development.
This documentation is for libsoup 3.0.
You can find older versions online at <ulink role="online-location" url="https://libsoup.org/libsoup-2.4/index.html">https://libsoup.org/libsoup-2.4/</ulink>.
</releaseinfo>
</bookinfo>
Expand Down
2 changes: 1 addition & 1 deletion libsoup/soup-version.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ soup_check_version (guint major,
guint minor,
guint micro)
{
return SOUP_CHECK_VERSION (major, minor, micro);
return SOUP_CHECK_VERSION (major, (int)minor, micro);
}

/**
Expand Down
15 changes: 8 additions & 7 deletions libsoup/soup-version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,21 @@ G_BEGIN_DECLS
* this means the next stable target
*/
#if (SOUP_MINOR_VERSION % 2)
#if (SOUP_MAJOR_VERSION == 2)
#define SOUP_VERSION_CUR_STABLE (G_ENCODE_VERSION (3, 0))
#else
#define SOUP_VERSION_CUR_STABLE (G_ENCODE_VERSION (SOUP_MAJOR_VERSION, SOUP_MINOR_VERSION + 1))
#endif
#else
#define SOUP_VERSION_CUR_STABLE (G_ENCODE_VERSION (SOUP_MAJOR_VERSION, SOUP_MINOR_VERSION))
#endif

/* evaluates to the previous stable version */
#if (SOUP_MINOR_VERSION % 2)
#define SOUP_VERSION_PREV_STABLE (G_ENCODE_VERSION (SOUP_MAJOR_VERSION, SOUP_MINOR_VERSION - 1))
#if (SOUP_MINOR_VERSION == 0)
/* Can't have -1 for previous version */
# define SOUP_VERSION_PREV_STABLE (G_ENCODE_VERSION (SOUP_MAJOR_VERSION, 0))
#else
#define SOUP_VERSION_PREV_STABLE (G_ENCODE_VERSION (SOUP_MAJOR_VERSION, SOUP_MINOR_VERSION - 2))
# if (SOUP_MINOR_VERSION % 2)
# define SOUP_VERSION_PREV_STABLE (G_ENCODE_VERSION (SOUP_MAJOR_VERSION, SOUP_MINOR_VERSION - 1))
# else
# define SOUP_VERSION_PREV_STABLE (G_ENCODE_VERSION (SOUP_MAJOR_VERSION, SOUP_MINOR_VERSION - 2))
# endif
#endif

#ifndef SOUP_VERSION_MIN_REQUIRED
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('libsoup', 'c',
version: '2.99.9',
version: '3.0.0',
meson_version : '>= 0.53',
license : 'LGPL2',
default_options : [
Expand Down

0 comments on commit 63f778a

Please sign in to comment.