[gupnp] service: Name GTasks
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] service: Name GTasks
- Date: Wed, 9 Jun 2021 21:59:15 +0000 (UTC)
commit f6cd8b582d668cf57a622f2c0b63856523d96c98
Author: Jens Georg <mail jensge org>
Date: Sat May 29 02:49:24 2021 +0200
service: Name GTasks
libgupnp/gupnp-service-info.c | 1 +
libgupnp/gupnp-service-proxy.c | 3 +++
2 files changed, 4 insertions(+)
---
diff --git a/libgupnp/gupnp-service-info.c b/libgupnp/gupnp-service-info.c
index c3cfb52..6394f46 100644
--- a/libgupnp/gupnp-service-info.c
+++ b/libgupnp/gupnp-service-info.c
@@ -848,6 +848,7 @@ gupnp_service_info_introspect_async (GUPnPServiceInfo *info,
gpointer user_data)
{
GTask *task = g_task_new (info, cancellable, callback, user_data);
+ g_task_set_name (task, "UPnP service introspection");
gupnp_service_info_get_introspection_async_full (info,
prv_introspection_cb,
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
index 020c57a..0eaa4a3 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -2093,6 +2093,9 @@ gupnp_service_proxy_call_action_async (GUPnPServiceProxy *proxy,
g_return_if_fail (GUPNP_IS_SERVICE_PROXY (proxy));
task = g_task_new (proxy, cancellable, callback, user_data);
+ char *task_name = g_strdup_printf ("UPnP Call \"%s\"", action->name);
+ g_task_set_name (task, task_name);
+ g_free (task_name);
g_task_set_task_data (task,
gupnp_service_proxy_action_ref (action),
(GDestroyNotify) gupnp_service_proxy_action_unref);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]