projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b17fa68
)
obexd: Emit Size property of transfer after open()
01/204901/1
author
ERAMOTO Masaya
<eramoto.masaya@jp.fujitsu.com>
Fri, 9 Feb 2018 09:11:41 +0000
(18:11 +0900)
committer
Amit Purwar
<amit.purwar@samsung.com>
Mon, 15 Apr 2019 03:27:00 +0000
(08:57 +0530)
Emits the Size property of transfer after calling ->open() because it
may update the size information.
Change-Id: I343e2f9c5993a9c91107e75f7a0af747f262308c
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
obexd/src/obex.c
patch
|
blob
|
history
diff --git
a/obexd/src/obex.c
b/obexd/src/obex.c
index
98650ba
..
5851aa1
100644
(file)
--- a/
obexd/src/obex.c
+++ b/
obexd/src/obex.c
@@
-797,6
+797,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;