[PATCH 0/7] Cancel pending phonebook request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux