[gupnp/wip/phako/reusable-service-action] service: Name GTasks
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/wip/phako/reusable-service-action] service: Name GTasks
- Date: Sat, 29 May 2021 14:41:34 +0000 (UTC)
commit 69b477465501f119377100b53386a11cee2df59e
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 f418422..8a063da 100644
--- a/libgupnp/gupnp-service-info.c
+++ b/libgupnp/gupnp-service-info.c
@@ -847,6 +847,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 24036c3..89440d1 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -2079,6 +2079,9 @@ gupnp_service_proxy_call_action_async (GUPnPServiceProxy *proxy,
priv = gupnp_service_proxy_get_instance_private (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]