Parent: 8abc6c728c8fb1d0c9e3177d2dd3bb3925c36918
Author: Dmitriy Paliy <dmitriy.paliy@nokia.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:32
Tree: ada00bfa72b8bb7c5948a677b6f93cb802d16394
obexd: New NewMissedCalls added for phonebook_pull. NewMissedCalls is added to MCH phone book pull function for tracker back-end (see PBAP specification pp.25,41). A new query is added to phonebook-tracker.c result of which is at most 40 sorted by time and date phone numbers from missed calls history with read/not read flags. New missed calls are acquired from the list locally. This query is submitted always first in order to have data for the first OBEX packet (see PBAP specification p.33). Canceling of pending D-Bus call was changed to conform introduced modifications. More specifically, phonebook_pull, phonebook_get_entry, phonebook_create_cache functions return pointer to phonebook_data structure that holds D-Bus pending call instead of pointer to the call. phonebook_data memory deallocation is moved to finalize function. This data is not freed after each query since two successive queries may be carried out and this structure holds pointer to the corresponding requests. pbap.c and obex.c are updated to add NewMissedCalls application parameter to first response OBEX packet. It is done only in the case when number of new missed calls is larger than 0. Therefore, other than tracker phone book back-ends are not affected. mimetype.h, filesystem.c, irmc.c, nokia-backup.c, syncevolution.c are updated to return flag parameter. OBEX_FL_FIT_ONE_PACKET flag is set only for PBAP if number of new missed calls larger than 0 when pulling phone book. write_offset field is added to struct obex_session in obex-priv.h. It holds write offset for TX OBEX packet and cannot be larger than tx_mtu. It is used in obex.c when writing to a stream packets that may contain headers of different types marked with OBEX_FL_FIT_ONE_PACKET flag.
Diffstat
| M | obexd/plugins/filesystem.c | | | 16 | +++++++++++++- - - |
| M | obexd/plugins/irmc.c | | | 6 | +++++- |
| M | obexd/plugins/nokia-backup.c | | | 6 | +++++- |
| M | obexd/plugins/pbap.c | | | 50 | ++++++++++++++++++++++++++++++++++++++++- - - - - |
| M | obexd/plugins/phonebook-tracker.c | | | 168 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | obexd/plugins/syncevolution.c | | | 6 | +++++- |
| M | obexd/src/mimetype.h | | | 3 | ++- |
| M | obexd/src/obex-priv.h | | | 1 | + |
| M | obexd/src/obex.c | | | 15 | ++++++++++- - - - - |
9 files changed, 223 insertions(+), 48 deletions(-)