Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 0/7] Cancel pending phonebook request
@ 2010-11-23 18:11 Dmitriy Paliy
  2010-11-23 18:11 ` [PATCH 1/7] Add " Dmitriy Paliy
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Dmitriy Paliy @ 2010-11-23 18:11 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

In this patch, pending request to backend is calceled when OBEX
object is destroyed. Such prevents situations of response on
query arriving to destroyed object, e.g. OBEX session is closed
in the middle of query to tracker.

Such required some changes in phonebook API. More specifcally,
changes in API affect phonebook_pull, phonebook_get_entry, and 
phonebook_create_cache functions. phonebook_req_cancel is added
to cancel pending request and deallocate resources respective to
it.

Phonebook request structure is specific to each backend and
created dinamically only for tracker. Therefore phonebook-dummy
and phonebook-ebook methods always return NULL instead of pending
request.

For PBAP, the object holds pointer to pending call. In IRMC, it 
is session where the pointer is stored and pending call canceled 
when closing OBEX object, and valid for phonebook_pull only.

BR,
Dmitriy


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-11-23 21:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 18:11 [PATCH 0/7] Cancel pending phonebook request Dmitriy Paliy
2010-11-23 18:11 ` [PATCH 1/7] Add " Dmitriy Paliy
2010-11-23 21:07   ` Luiz Augusto von Dentz
2010-11-23 18:11 ` [PATCH 2/7] Add phonebook_req_cancel prototype Dmitriy Paliy
2010-11-23 18:11 ` [PATCH 3/7] Add phonebook_req_cancel to tracker Dmitriy Paliy
2010-11-23 18:11 ` [PATCH 4/7] Add update phonebook_pull Dmitriy Paliy
2010-11-23 18:11 ` [PATCH 5/7] Add update phonebook_get_entry Dmitriy Paliy
2010-11-23 18:11 ` [PATCH 6/7] Add update phonebook_create_cache Dmitriy Paliy
2010-11-23 18:11 ` [PATCH 7/7] Code clean-up: lines longer 80 symbols removed Dmitriy Paliy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox