-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Dmitriy Paliy
authored and
Johan Hedberg
committed
Jan 3, 2011
1 parent
b521c83
commit e0b3283
Showing
9 changed files
with
223 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.