You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by na...@apache.org on 2019/01/11 16:07:33 UTC
[mynewt-nimble] 03/07: host: Make ble_gatts_clt_cfg_access
non-static
This is an automated email from the ASF dual-hosted git repository.
naraj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit c8a6bc66e017f5585f6ef4c718c945b6168d3f02
Author: MichaĆ Narajowski <mi...@codecoup.pl>
AuthorDate: Wed Jan 2 15:15:44 2019 +0100
host: Make ble_gatts_clt_cfg_access non-static
This is needed to read cccd value from bttester app.
---
nimble/host/src/ble_gatt_priv.h | 3 +++
nimble/host/src/ble_gatts.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/nimble/host/src/ble_gatt_priv.h b/nimble/host/src/ble_gatt_priv.h
index 4893694..a49e936 100644
--- a/nimble/host/src/ble_gatt_priv.h
+++ b/nimble/host/src/ble_gatt_priv.h
@@ -182,6 +182,9 @@ void ble_gatts_lcl_svc_foreach(ble_gatt_svc_foreach_fn cb, void *arg);
int ble_gatts_register_svcs(const struct ble_gatt_svc_def *svcs,
ble_gatt_register_fn *register_cb,
void *cb_arg);
+int ble_gatts_clt_cfg_access(uint16_t conn_handle, uint16_t attr_handle,
+ uint8_t op, uint16_t offset, struct os_mbuf **om,
+ void *arg);
/*** @misc. */
int ble_gatts_conn_can_alloc(void);
diff --git a/nimble/host/src/ble_gatts.c b/nimble/host/src/ble_gatts.c
index 3f30dd4..f1a80ff 100644
--- a/nimble/host/src/ble_gatts.c
+++ b/nimble/host/src/ble_gatts.c
@@ -733,7 +733,7 @@ ble_gatts_clt_cfg_access_locked(struct ble_hs_conn *conn, uint16_t attr_handle,
return 0;
}
-static int
+int
ble_gatts_clt_cfg_access(uint16_t conn_handle, uint16_t attr_handle,
uint8_t op, uint16_t offset, struct os_mbuf **om,
void *arg)