Commit: b5b51017ea1818712137bc03d0eba49204e5bc4e
Parent: b30b1eddb4b3d69968f18c943139f4aa0018d1b3
Author: Amisha Jain <quic_amisjain@quicinc.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-10-18 00:24:41
Tree: e24a47983df5239e7f1f37ef2314831608514d58

obex: Move size emit signal to plugins instead of obex.c Instead of emitting the property "Size" from obex_put_stream_start(), Call the function manager_emit_transfer_property() from plugins/*.c wherever plugin has transfer object present. Remove the code from obex.c which is generic for all profiles. This change resolves the type mismatch issue when calling the manager_emit_transfer_property from obex.c. We are passing 'os->service_data' of plugin session type but the manager_emit_transfer_property() expects the 'obex_transfer' type, therefore size is not set properly and might cause crash/disconnection.

Diffstat

M obexd/plugins/ftp.c | 5 +++++
M obexd/plugins/opp.c | 5 +++++
M obexd/src/obex.c | 3 - - -

3 files changed, 10 insertions(+), 3 deletions(-)

View Full Diff | Patch