Commit: 9dadaaf8d50447cc3accbcd726fac46d091f1ef6
Parent: 8e773042edefc054386bafa2a611470f95212607
Author: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:35
Tree: e04be5a4d2a5d75f31047f530f71cd1770d340d7

obexd: Add flush callback to mimetype driver This add the possibility to a driver to flush its data when final packet is received which is specially usefull for PUT to prevent auto response for objects with no body/body empty/size 0. Note that it should not block like fsync, instead it is assumed to always be asyncronous so request is suspended when .flush returns > 0, the driver should then use obex_object_set_io_flags to indicate that it has completed the operation.

Diffstat

M obexd/src/mimetype.h | 1 +
M obexd/src/obex.c | 26 ++++++++++++++++++++++++- -

2 files changed, 25 insertions(+), 2 deletions(-)

View Full Diff | Patch