summaryrefslogtreecommitdiff
path: root/obexd
diff options
context:
space:
mode:
authorERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>2018-02-09 18:11:41 +0900
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2018-02-12 13:36:09 +0200
commitbb160515185e6fdcfb57e327a4a3224f80eab2c9 (patch)
tree29cf3dae91ea0c0bfd4d1254122c2b8e3076a3fb /obexd
parent3e9617fcd8f9bf1c5fc6cc7b88f408b4131f7a14 (diff)
downloadbluez-bb160515185e6fdcfb57e327a4a3224f80eab2c9.tar.gz
obexd: Emit Size property of transfer after open()
Emits the Size property of transfer after calling ->open() because it may update the size information.
Diffstat (limited to 'obexd')
-rw-r--r--obexd/src/obex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index a4bae857f..ed219d3e7 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
@@ -779,6 +779,9 @@ int obex_put_stream_start(struct obex_session *os, const char *filename)
return err;
}
+ if (os->size != OBJECT_SIZE_DELETE && os->size != OBJECT_SIZE_UNKNOWN)
+ manager_emit_transfer_property(os->service_data, "Size");
+
os->path = g_strdup(filename);
return 0;