Skip to contentSkip to conversation

obexd/transfer: Send Transferred property on transfer completion

PATCH Applied Frédéric Danis 3 participants 3 messages May 27, 2025 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 obexd/transfer: Send Transferred property on transfer completion

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(+)
obexd/client/transfer.c +3 -0
index 879d67d58..668cefa40 100644
@@ -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);
Signature · 1 line
2.43.0
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=966569

---Test result---

Test Summary:

CheckPatch                    PENDING   0.31 seconds
GitLint                       PENDING   0.26 seconds
BuildEll                      PASS      20.25 seconds
BluezMake                     PASS      2685.58 seconds
MakeCheck                     PASS      20.11 seconds
MakeDistcheck                 PASS      200.18 seconds
CheckValgrind                 PASS      277.46 seconds
CheckSmatch                   PASS      302.62 seconds
bluezmakeextell               PASS      129.06 seconds
IncrementalBuild              PENDING   0.27 seconds
ScanBuild                     PASS      923.81 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:

---
Regards,
Linux Bluetooth

#2 lore raw
In reply to Frédéric Danis
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 6 lines · 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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html