public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] obexd/transfer: Send Transferred property on transfer completion
@ 2025-05-27  7:17 Frédéric Danis
  2025-05-27  8:36 ` [BlueZ] " bluez.test.bot
  2025-05-27 14:00 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Frédéric Danis @ 2025-05-27  7:17 UTC (permalink / raw)
  To: linux-bluetooth

Currently the Transferred property is sent each second and not on
transfer completion, this leads to get no transferred size info or
without the last packet size(s).
---
 obexd/client/transfer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c
index 879d67d58..668cefa40 100644
--- a/obexd/client/transfer.c
+++ b/obexd/client/transfer.c
@@ -660,6 +660,9 @@ static void xfer_complete(GObex *obex, GError *err, gpointer user_data)
 	struct transfer_callback *callback = transfer->callback;
 
 	transfer->xfer = 0;
+	transfer->progress = transfer->transferred;
+	g_dbus_emit_property_changed(transfer->conn, transfer->path,
+			TRANSFER_INTERFACE, "Transferred");
 
 	if (transfer->progress_id != 0) {
 		g_source_remove(transfer->progress_id);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-27 13:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-27  7:17 [PATCH BlueZ] obexd/transfer: Send Transferred property on transfer completion Frédéric Danis
2025-05-27  8:36 ` [BlueZ] " bluez.test.bot
2025-05-27 14:00 ` [PATCH BlueZ] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox