diff options
author | ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com> | 2018-02-09 18:11:41 +0900 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-02-12 13:36:09 +0200 |
commit | bb160515185e6fdcfb57e327a4a3224f80eab2c9 (patch) | |
tree | 29cf3dae91ea0c0bfd4d1254122c2b8e3076a3fb /obexd | |
parent | 3e9617fcd8f9bf1c5fc6cc7b88f408b4131f7a14 (diff) | |
download | bluez-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.c | 3 |
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; |