android/tester: Add macro improving pdu send procedure

System Internals / BlueZ - Jakub Tyszkowski [tieto.com] - 13 January 2015 07:46 UTC

As of now when we want to send response from remote device, we compose pdu from handle and value, which are then copied into fixed size pdu with predefined header. With this macro we will be able to pass up to 3 iovectors which are then send without additional copying. It also quite generic and can be used to any other kind of data processing nad not only for sending pdus.

51a8bb2 android/tester: Add macro improving pdu send procedure
android/tester-gatt.c | 2 +-
android/tester-main.h | 13 +++++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)

Upstream: git.kernel.org


  • Share