You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/01/22 02:52:47 UTC
[2/2] incubator-mynewt-larva git commit: Rename GATT procedure for
consistency.
Rename GATT procedure for consistency.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/b9a932fc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/b9a932fc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/b9a932fc
Branch: refs/heads/master
Commit: b9a932fc0c57fc261956968b46ae877e6f0f28ef
Parents: a4339d4
Author: Christopher Collins <cc...@gmail.com>
Authored: Thu Jan 21 16:35:34 2016 -0800
Committer: Christopher Collins <cc...@gmail.com>
Committed: Thu Jan 21 17:52:35 2016 -0800
----------------------------------------------------------------------
net/nimble/host/include/host/ble_gatt.h | 6 +++---
net/nimble/host/src/ble_gattc.c | 6 +++---
net/nimble/host/src/test/ble_gatt_read_test.c | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/b9a932fc/net/nimble/host/include/host/ble_gatt.h
----------------------------------------------------------------------
diff --git a/net/nimble/host/include/host/ble_gatt.h b/net/nimble/host/include/host/ble_gatt.h
index f6c74d5..849f3a3 100644
--- a/net/nimble/host/include/host/ble_gatt.h
+++ b/net/nimble/host/include/host/ble_gatt.h
@@ -99,9 +99,9 @@ int ble_gattc_disc_all_dscs(uint16_t conn_handle, uint16_t chr_val_handle,
ble_gatt_dsc_fn *cb, void *cb_arg);
int ble_gattc_read(uint16_t conn_handle, uint16_t attr_handle,
ble_gatt_attr_fn *cb, void *cb_arg);
-int ble_gattc_read_uuid(uint16_t conn_handle, uint16_t start_handle,
- uint16_t end_handle, void *uuid128,
- ble_gatt_attr_fn *cb, void *cb_arg);
+int ble_gattc_read_by_uuid(uint16_t conn_handle, uint16_t start_handle,
+ uint16_t end_handle, void *uuid128,
+ ble_gatt_attr_fn *cb, void *cb_arg);
int ble_gattc_read_long(uint16_t conn_handle, uint16_t handle,
ble_gatt_attr_fn *cb, void *cb_arg);
int ble_gattc_read_mult(uint16_t conn_handle, uint16_t *handles,
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/b9a932fc/net/nimble/host/src/ble_gattc.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_gattc.c b/net/nimble/host/src/ble_gattc.c
index e98feda..c0870ce 100644
--- a/net/nimble/host/src/ble_gattc.c
+++ b/net/nimble/host/src/ble_gattc.c
@@ -2380,9 +2380,9 @@ ble_gattc_read_uuid_rx_complete(struct ble_gattc_proc *proc,
* @param cb_arg The argument to pass to the callback function.
*/
int
-ble_gattc_read_uuid(uint16_t conn_handle, uint16_t start_handle,
- uint16_t end_handle, void *uuid128,
- ble_gatt_attr_fn *cb, void *cb_arg)
+ble_gattc_read_by_uuid(uint16_t conn_handle, uint16_t start_handle,
+ uint16_t end_handle, void *uuid128,
+ ble_gatt_attr_fn *cb, void *cb_arg)
{
struct ble_gattc_proc *proc;
int rc;
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/b9a932fc/net/nimble/host/src/test/ble_gatt_read_test.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/test/ble_gatt_read_test.c b/net/nimble/host/src/test/ble_gatt_read_test.c
index 9ecaf74..ef103cc 100644
--- a/net/nimble/host/src/test/ble_gatt_read_test.c
+++ b/net/nimble/host/src/test/ble_gatt_read_test.c
@@ -346,8 +346,8 @@ ble_gatt_read_test_misc_uuid_verify_good(uint16_t start_handle,
conn = ble_hs_test_util_create_conn(2, ((uint8_t[]){2,3,4,5,6,7,8,9}),
NULL, NULL);
- rc = ble_gattc_read_uuid(conn->bhc_handle, start_handle, end_handle,
- uuid128, ble_gatt_read_test_cb, &stop_after);
+ rc = ble_gattc_read_by_uuid(conn->bhc_handle, start_handle, end_handle,
+ uuid128, ble_gatt_read_test_cb, &stop_after);
TEST_ASSERT_FATAL(rc == 0);
idx = 0;