BLE Host - Make L2CAP CID definitions public.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/9b982061 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9b982061 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9b982061 Branch: refs/heads/nrf_cputime Commit: 9b9820611e7554557612dc13b6b42b0019c7ec88 Parents: c44b4ad Author: Christopher Collins <ccoll...@apache.org> Authored: Tue Mar 28 16:39:36 2017 -0700 Committer: Christopher Collins <ccoll...@apache.org> Committed: Tue Mar 28 16:58:41 2017 -0700 ---------------------------------------------------------------------- net/nimble/host/include/host/ble_hs.h | 1 + net/nimble/host/include/host/ble_l2cap.h | 4 ++++ net/nimble/host/src/ble_l2cap_priv.h | 4 ---- 3 files changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9b982061/net/nimble/host/include/host/ble_hs.h ---------------------------------------------------------------------- diff --git a/net/nimble/host/include/host/ble_hs.h b/net/nimble/host/include/host/ble_hs.h index 8dd2296..ada830d 100644 --- a/net/nimble/host/include/host/ble_hs.h +++ b/net/nimble/host/include/host/ble_hs.h @@ -30,6 +30,7 @@ #include "host/ble_hs_log.h" #include "host/ble_hs_test.h" #include "host/ble_hs_mbuf.h" +#include "host/ble_l2cap.h" #include "host/ble_sm.h" #include "host/ble_store.h" #include "host/ble_uuid.h" http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9b982061/net/nimble/host/include/host/ble_l2cap.h ---------------------------------------------------------------------- diff --git a/net/nimble/host/include/host/ble_l2cap.h b/net/nimble/host/include/host/ble_l2cap.h index b3b03b9..0b54189 100644 --- a/net/nimble/host/include/host/ble_l2cap.h +++ b/net/nimble/host/include/host/ble_l2cap.h @@ -28,6 +28,10 @@ extern "C" { struct ble_l2cap_sig_update_req; struct ble_hs_conn; +#define BLE_L2CAP_CID_ATT 4 +#define BLE_L2CAP_CID_SIG 5 +#define BLE_L2CAP_CID_SM 6 + #define BLE_L2CAP_SIG_OP_REJECT 0x01 #define BLE_L2CAP_SIG_OP_CONNECT_REQ 0x02 #define BLE_L2CAP_SIG_OP_CONNECT_RSP 0x03 http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9b982061/net/nimble/host/src/ble_l2cap_priv.h ---------------------------------------------------------------------- diff --git a/net/nimble/host/src/ble_l2cap_priv.h b/net/nimble/host/src/ble_l2cap_priv.h index 1d035e8..5bc8d83 100644 --- a/net/nimble/host/src/ble_l2cap_priv.h +++ b/net/nimble/host/src/ble_l2cap_priv.h @@ -49,10 +49,6 @@ extern STATS_SECT_DECL(ble_l2cap_stats) ble_l2cap_stats; extern struct os_mempool ble_l2cap_chan_pool; -#define BLE_L2CAP_CID_ATT 4 -#define BLE_L2CAP_CID_SIG 5 -#define BLE_L2CAP_CID_SM 6 - /* This is nimble specific; packets sent to the black hole CID do not elicit * an "invalid CID" response. */