[gupnp-igd/wip/new-gupnp: 5/5] Port to GUPnP 1.6 API
- From: Olivier Crête <tester src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-igd/wip/new-gupnp: 5/5] Port to GUPnP 1.6 API
- Date: Tue, 24 May 2022 22:28:07 +0000 (UTC)
commit c969057e364c7ce483352178345fbdfe4f25aa65
Author: Jens Georg <mail jensge org>
Date: Tue May 3 22:39:16 2022 +0200
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
meson.build | 6 +++---
subprojects/.gitignore | 4 ++--
subprojects/{gupnp-1.2.wrap => gupnp-1.6.wrap} | 2 +-
tests/gtest/gupnp-simple-igd.c | 6 +++---
4 files changed, 9 insertions(+), 9 deletions(-)
---
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
similarity index 76%
rename from subprojects/gupnp-1.2.wrap
rename to 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]