Commit: 7169587d4df7105633ec512bb19bcff6525f6c91
Parent: 8042fbf632e6ef0a29e0b5cb0ced13e12d1e2f94
Author: Radoslaw Jablonski <ext-jablonski.radoslaw@nokia.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:34
Tree: 83b25d0957e43ecd00ff1eda7020a3bea971ef94

obexd: Introduction of phonebook_pull_read Previosly reading from backend was initialized in phonebook_pull. Now phonebook_pull should be used only for preparing request data and phonebook_pull_read for 'real' reading vcards data from back-end. The back-end can return data in one response or it can return data in many parts. After obtaining one part, PBAP core need to call phonebook_pull_read with the same request again to get more results. Using that, PBAP core has control of its the buffer size - it can ask for new parts of data when buffer is empty or when its size will be lower than some level.

Diffstat

M obexd/plugins/irmc.c | 11 +++++++++++
M obexd/plugins/pbap.c | 22 +++++++++++++++++++++-
M obexd/plugins/phonebook-dummy.c | 27 ++++++++++++++++++++- - - - - - -
M obexd/plugins/phonebook-ebook.c | 23 ++++++++++++++++- - - - - - -
M obexd/plugins/phonebook-tracker.c | 51 ++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - -
M obexd/plugins/phonebook.h | 20 ++++++++++++++++- - - -

6 files changed, 116 insertions(+), 38 deletions(-)

View Full Diff | Patch