aboutsummaryrefslogtreecommitdiff
path: root/stack/include/bnep_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'stack/include/bnep_api.h')
-rw-r--r--stack/include/bnep_api.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/stack/include/bnep_api.h b/stack/include/bnep_api.h
index a956d0cbe..03b72e4c4 100644
--- a/stack/include/bnep_api.h
+++ b/stack/include/bnep_api.h
@@ -176,6 +176,26 @@ typedef struct {
} tBNEP_REGISTER;
+/* This is the structure used by profile to get the status of BNEP */
+typedef struct {
+#define BNEP_STATUS_FAILE 0
+#define BNEP_STATUS_CONNECTED 1
+ uint8_t con_status;
+
+ uint16_t l2cap_cid;
+ RawAddress rem_bda;
+ uint16_t rem_mtu_size;
+ uint16_t xmit_q_depth;
+
+ uint16_t sent_num_filters;
+ uint16_t sent_mcast_filters;
+ uint16_t rcvd_num_filters;
+ uint16_t rcvd_mcast_filters;
+ bluetooth::Uuid src_uuid;
+ bluetooth::Uuid dst_uuid;
+
+} tBNEP_STATUS;
+
/*****************************************************************************
* External Function Declarations
****************************************************************************/
@@ -229,7 +249,7 @@ extern void BNEP_Deregister(void);
extern tBNEP_RESULT BNEP_Connect(const RawAddress& p_rem_bda,
const bluetooth::Uuid& src_uuid,
const bluetooth::Uuid& dst_uuid,
- uint16_t* p_handle, uint32_t mx_chan_id);
+ uint16_t* p_handle);
/*******************************************************************************
*
@@ -396,4 +416,20 @@ extern uint8_t BNEP_SetTraceLevel(uint8_t new_level);
******************************************************************************/
extern void BNEP_Init(void);
+/*******************************************************************************
+ *
+ * Function BNEP_GetStatus
+ *
+ * Description This function gets the status information for BNEP
+ * connection
+ *
+ * Returns BNEP_SUCCESS - if the status is available
+ * BNEP_NO_RESOURCES - if no structure is passed for
+ * output
+ * BNEP_WRONG_HANDLE - if the handle is invalid
+ * BNEP_WRONG_STATE - if not in connected state
+ *
+ ******************************************************************************/
+extern tBNEP_RESULT BNEP_GetStatus(uint16_t handle, tBNEP_STATUS* p_status);
+
#endif