Return-Path: From: Lukasz Rymanowski To: linux-bluetooth@vger.kernel.org Cc: szymon.janc@tieto.com, Lukasz Rymanowski Subject: [PATCH v2 2/5] attrib: Expose write execute Date: Thu, 17 Apr 2014 13:57:45 +0200 Message-Id: <1397735868-19092-3-git-send-email-lukasz.rymanowski@tieto.com> In-Reply-To: <1397735868-19092-1-git-send-email-lukasz.rymanowski@tieto.com> References: <1397735868-19092-1-git-send-email-lukasz.rymanowski@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: This is needed to cover Android API --- attrib/gatt.c | 6 ++++++ attrib/gatt.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/attrib/gatt.c b/attrib/gatt.c index e461ab7..f5917db 100644 --- a/attrib/gatt.c +++ b/attrib/gatt.c @@ -871,6 +871,12 @@ guint gatt_write_char(GAttrib *attrib, uint16_t handle, const uint8_t *value, return prepare_write(long_write); } +guint gatt_execute_write(GAttrib *attrib, uint8_t flags, + GAttribResultFunc func, gpointer user_data) +{ + return execute_write(attrib, flags, func, user_data); +} + guint gatt_reliable_write_char(GAttrib *attrib, uint16_t handle, const uint8_t *value, size_t vlen, GAttribResultFunc func, diff --git a/attrib/gatt.h b/attrib/gatt.h index 585a876..3fe6041 100644 --- a/attrib/gatt.h +++ b/attrib/gatt.h @@ -89,6 +89,9 @@ guint gatt_reliable_write_char(GAttrib *attrib, uint16_t handle, GAttribResultFunc func, gpointer user_data); +guint gatt_execute_write(GAttrib *attrib, uint8_t flags, + GAttribResultFunc func, gpointer user_data); + guint gatt_discover_char_desc(GAttrib *attrib, uint16_t start, uint16_t end, GAttribResultFunc func, gpointer user_data); -- 1.8.4