summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Borges <felipeborges@gnome.org>2021-10-04 15:44:49 +0200
committerFelipe Borges <felipeborges@gnome.org>2021-10-06 13:17:35 +0200
commit86c10477b360274fc60047d6cd582e1e2dfb3d20 (patch)
tree10df13a2d67ca367719c71a3d55a4910827b9ee0
parent7c20768adee1dace6c0d6d9a52d601970f6dc0e0 (diff)
downloadlibosinfo-86c10477b360274fc60047d6cd582e1e2dfb3d20.tar.gz
tree, media: Soup.Session.send_async now takes an IO priority argument
See https://libsoup.org/libsoup-3.0/SoupSession.html#soup-session-send-async Signed-off-by: Felipe Borges <felipeborges@gnome.org>
-rw-r--r--osinfo/osinfo_media.c3
-rw-r--r--osinfo/osinfo_tree.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/osinfo/osinfo_media.c b/osinfo/osinfo_media.c
index 35bc257..cb859a3 100644
--- a/osinfo/osinfo_media.c
+++ b/osinfo/osinfo_media.c
@@ -1393,6 +1393,9 @@ void osinfo_media_create_from_location_with_flags_async(const gchar *location,
soup_session_send_async(data->session,
data->message,
+#if SOUP_MAJOR_VERSION > 2
+ G_PRIORITY_DEFAULT,
+#endif
cancellable,
on_location_read,
data);
diff --git a/osinfo/osinfo_tree.c b/osinfo/osinfo_tree.c
index 7455f94..fcf71c0 100644
--- a/osinfo/osinfo_tree.c
+++ b/osinfo/osinfo_tree.c
@@ -831,6 +831,9 @@ osinfo_tree_create_from_location_async_helper(CreateFromLocationAsyncData *data,
soup_session_send_async(data->session,
data->message,
+#if SOUP_MAJOR_VERSION > 2
+ G_PRIORITY_DEFAULT,
+#endif
g_task_get_cancellable(data->res),
on_soup_location_read,
data);