diff mbox series

[BlueZ] obexd/transfer: Send Transferred property on transfer completion

Message ID 20250527071759.130143-1-frederic.danis@collabora.com
State New
Headers show
Series [BlueZ] obexd/transfer: Send Transferred property on transfer completion | expand

Commit Message

Frédéric Danis May 27, 2025, 7:17 a.m. UTC
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(+)

Comments

patchwork-bot+bluetooth@kernel.org May 27, 2025, 2 p.m. UTC | #1
Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Tue, 27 May 2025 09:17:59 +0200 you wrote:
> 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(+)

Here is the summary with links:
  - [BlueZ] obexd/transfer: Send Transferred property on transfer completion
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=f8c6693139de

You are awesome, thank you!
diff mbox series

Patch

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);