diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2014-05-02 12:57:41 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-05-05 10:49:51 +0300 |
commit | 9b9771ce8f4e2ef62029b3e4f069e2384c82a370 (patch) | |
tree | fc541084c7e9a74a3e07f7ac6d2e8a3e057d71ea /attrib | |
parent | 2d593eda558c4620b2876ed8988f087946d85237 (diff) | |
download | bluez-9b9771ce8f4e2ef62029b3e4f069e2384c82a370.tar.gz |
gatt: Remove gatt_discover_char_desc
This function is no longer used since all code is changed to use
gatt_discover_desc instead.
Diffstat (limited to 'attrib')
-rw-r--r-- | attrib/gatt.c | 15 | ||||
-rw-r--r-- | attrib/gatt.h | 3 |
2 files changed, 0 insertions, 18 deletions
diff --git a/attrib/gatt.c b/attrib/gatt.c index f76661773..73eaf7a86 100644 --- a/attrib/gatt.c +++ b/attrib/gatt.c @@ -1053,21 +1053,6 @@ guint gatt_discover_desc(GAttrib *attrib, uint16_t start, uint16_t end, discover_desc_ref(dd), discover_desc_unref); } -guint gatt_discover_char_desc(GAttrib *attrib, uint16_t start, uint16_t end, - GAttribResultFunc func, gpointer user_data) -{ - uint8_t *buf; - size_t buflen; - guint16 plen; - - buf = g_attrib_get_buffer(attrib, &buflen); - plen = enc_find_info_req(start, end, buf, buflen); - if (plen == 0) - return 0; - - return g_attrib_send(attrib, 0, buf, plen, func, user_data, NULL); -} - guint gatt_write_cmd(GAttrib *attrib, uint16_t handle, const uint8_t *value, int vlen, GDestroyNotify notify, gpointer user_data) { diff --git a/attrib/gatt.h b/attrib/gatt.h index 533bfd707..7d055f00c 100644 --- a/attrib/gatt.h +++ b/attrib/gatt.h @@ -102,9 +102,6 @@ guint gatt_reliable_write_char(GAttrib *attrib, uint16_t handle, 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); - guint gatt_write_cmd(GAttrib *attrib, uint16_t handle, const uint8_t *value, int vlen, GDestroyNotify notify, gpointer user_data); |