summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2022-05-03 22:39:16 +0200
committerOlivier Crête <olivier.crete@collabora.com>2022-05-25 14:24:58 -0400
commit79a1e4cf8c256132978a1d8ab718c8ad132386de (patch)
treebdee512aff1272b24f358c8b6a919e33a272836c
parentbb1e3ded40d346f5180831dc28e857d0d89d1f7b (diff)
downloadgupnp-igd-79a1e4cf8c256132978a1d8ab718c8ad132386de.tar.gz
Port to GUPnP 1.6 API
And thus to libsoup3. The code changes are even compatible with GUPnP 1.4.3 so the gupnp version could be a configure option
-rw-r--r--NEWS2
-rw-r--r--README4
-rw-r--r--libgupnp-igd/meson.build2
-rw-r--r--meson.build6
-rw-r--r--subprojects/.gitignore4
-rw-r--r--subprojects/gupnp-1.6.wrap (renamed from subprojects/gupnp-1.2.wrap)2
-rw-r--r--tests/gtest/gupnp-simple-igd.c6
7 files changed, 13 insertions, 13 deletions
diff --git a/NEWS b/NEWS
index 5979f6d..eabb318 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,5 @@
*******************
-* GUPnP IGD 1.20 *
+* GUPnP IGD 1.2.0 *
*******************
- Switch to GUPnP 1.2.0 API
diff --git a/README b/README
index 4b74b6f..09884d2 100644
--- a/README
+++ b/README
@@ -1,9 +1,9 @@
This is a library to handle UPnP IGD port mapping.
-It was written by Olivier Crête <olivier.crete@collabora.co.uk>.
+It was written by Olivier Crête <olivier.crete@collabora.com>.
It is supposed to have a very simple API. Read the gtk-doc.
The only dependencies are:
- - GUPnP 1.2
+ - GUPnP 1.6
- GLib 2.38
diff --git a/libgupnp-igd/meson.build b/libgupnp-igd/meson.build
index c37ef3d..6dcd394 100644
--- a/libgupnp-igd/meson.build
+++ b/libgupnp-igd/meson.build
@@ -38,7 +38,7 @@ pkg.generate(
subdirs : 'gupnp-igd-1.0',
filebase : 'gupnp-igd-1.0',
description: 'GUPnP Simple IGD library',
- requires_private : 'gupnp-1.2'
+ requires_private : 'gupnp-1.6'
)
diff --git a/meson.build b/meson.build
index df2fb24..8377d01 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('gupnp-igd', 'c', version: '1.2.0')
+project('gupnp-igd', 'c', version: '1.5.0')
gnome = import('gnome')
pkg = import('pkgconfig')
@@ -7,8 +7,8 @@ glib_req = '>= 2.38'
dependencies = [
dependency('glib-2.0', version: glib_req, required: true),
dependency('gobject-2.0', version: glib_req, required: true),
- dependency('gupnp-1.2', version : '>= 1.2.0'),
- dependency('gssdp-1.2', version : '>= 1.2.0'),
+ dependency('gupnp-1.6', version : '>= 1.5.0'),
+ dependency('gssdp-1.6', version : '>= 1.5.0'),
dependency('gthread-2.0', required: true)
]
diff --git a/subprojects/.gitignore b/subprojects/.gitignore
index 357f586..34d47ed 100644
--- a/subprojects/.gitignore
+++ b/subprojects/.gitignore
@@ -1,3 +1,3 @@
-gupnp-1.2
+gupnp-1.6
gi-docgen*
-gssdp-1.2*
+gssdp-1.6*
diff --git a/subprojects/gupnp-1.2.wrap b/subprojects/gupnp-1.6.wrap
index 7fa58e1..937e841 100644
--- a/subprojects/gupnp-1.2.wrap
+++ b/subprojects/gupnp-1.6.wrap
@@ -1,4 +1,4 @@
[wrap-git]
url = https://gitlab.gnome.org/GNOME/gupnp.git
-revision = gupnp-1.4
+revision = master
depth = 1
diff --git a/tests/gtest/gupnp-simple-igd.c b/tests/gtest/gupnp-simple-igd.c
index 593c46e..ec770ca 100644
--- a/tests/gtest/gupnp-simple-igd.c
+++ b/tests/gtest/gupnp-simple-igd.c
@@ -88,7 +88,7 @@ get_external_ip_address_cb (GUPnPService *service,
else
g_assert_not_reached ();
- gupnp_service_action_return (action);
+ gupnp_service_action_return_success (action);
}
@@ -139,7 +139,7 @@ add_port_mapping_cb (GUPnPService *service,
if (return_conflict && external_port == INTERNAL_PORT)
gupnp_service_action_return_error (action, 718, "ConflictInMappingEntry");
else
- gupnp_service_action_return (action);
+ gupnp_service_action_return_success (action);
}
static gboolean
@@ -172,7 +172,7 @@ delete_port_mapping_cb (GUPnPService *service,
g_assert (external_port != INTERNAL_PORT);
g_assert (proto && !strcmp (proto, "UDP"));
- gupnp_service_action_return (action);
+ gupnp_service_action_return_success (action);
g_free (remote_host);
g_free (proto);