[gupnp/wip/phako/cleanup: 1/4] service: Name GTasks
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp/wip/phako/cleanup: 1/4] service: Name GTasks
- Date: Sun, 30 May 2021 09:51:35 +0000 (UTC)
commit 9102642070345759fff39a00883b413388381f59
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 b531784..492126d 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 6e09456..cec05e0 100644
--- a/libgupnp/gupnp-service-proxy.c
+++ b/libgupnp/gupnp-service-proxy.c
@@ -2092,6 +2092,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]