linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] Fix reading attribute value in database
@ 2014-05-12 13:02 Marcin Kraglak
  2014-05-12 13:02 ` [PATCH 1/8] android/gatt: Fix sending att responses Marcin Kraglak
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Marcin Kraglak @ 2014-05-12 13:02 UTC (permalink / raw)
  To: linux-bluetooth

This is refactor of existing server and database.
Now all functions in gatt_db for processing ATT commands are changed
to fill queue with handles of found attributes only, and no specific
data is used. There are also getters for attribute type and end
group type. Gatt_db_read is also refactored to return value of attribute
if exists or call read_cb if registered. In first case we can fill response,
otherwise we have collect data from callbacks in pending_requests queue
(in device struct) and then send response.
We also consider passing read_result_cb to gatt_db_read(), it can simplify
collecting attributes values (data will be always passed to read_result_cb).
Also functions like gatt_db_find_by_type can be replaced in future with
one "filtering" function.

Jakub Tyszkowski (2):
  android/gatt: Fix sending att responses
  shared/gatt: Make 'find_by_type_value' callback compatible

Marcin Kraglak (6):
  shared/gatt: Extend gatt_db_read function
  android/gatt: Refactor ATT read operations
  shared/gatt: Make read by type use response queue
  shared/gatt: Refactor find information
  shared/gatt: Add function to get end group handle
  shared/gatt: Refactor read_by_group_type

 android/gatt.c       | 445 ++++++++++++++++++++++++++++++++++-----------------
 src/shared/gatt-db.c | 128 +++++++--------
 src/shared/gatt-db.h |  42 ++---
 3 files changed, 372 insertions(+), 243 deletions(-)

-- 
1.8.5.3


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

end of thread, other threads:[~2014-05-13 13:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-12 13:02 [PATCH 0/8] Fix reading attribute value in database Marcin Kraglak
2014-05-12 13:02 ` [PATCH 1/8] android/gatt: Fix sending att responses Marcin Kraglak
2014-05-13 13:04   ` Szymon Janc
2014-05-12 13:02 ` [PATCH 2/8] shared/gatt: Extend gatt_db_read function Marcin Kraglak
2014-05-13 13:07   ` Szymon Janc
2014-05-12 13:02 ` [PATCH 3/8] android/gatt: Refactor ATT read operations Marcin Kraglak
2014-05-13 13:30   ` Szymon Janc
2014-05-12 13:02 ` [PATCH 4/8] shared/gatt: Make read by type use response queue Marcin Kraglak
2014-05-13 13:35   ` Szymon Janc
2014-05-12 13:02 ` [PATCH 5/8] shared/gatt: Refactor find information Marcin Kraglak
2014-05-13 13:41   ` Szymon Janc
2014-05-12 13:02 ` [PATCH 6/8] shared/gatt: Add function to get end group handle Marcin Kraglak
2014-05-12 13:02 ` [PATCH 7/8] shared/gatt: Make 'find_by_type_value' callback compatible Marcin Kraglak
2014-05-12 13:02 ` [PATCH 8/8] shared/gatt: Refactor read_by_group_type Marcin Kraglak
2014-05-13 13:50   ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).