}
/* Client initiates an RFCOMM connection */
-void bta_jv_rfcomm_connect(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
- uint8_t remote_scn, const RawAddress& peer_bd_addr,
+void bta_jv_rfcomm_connect(tBTA_SEC sec_mask, uint8_t remote_scn,
+ const RawAddress& peer_bd_addr,
tBTA_JV_RFCOMM_CBACK* p_cback,
uint32_t rfcomm_slot_id) {
uint16_t handle = 0;
}
/* waits for an RFCOMM client to connect */
-void bta_jv_rfcomm_start_server(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
- uint8_t local_scn, uint8_t max_session,
+void bta_jv_rfcomm_start_server(tBTA_SEC sec_mask, uint8_t local_scn,
+ uint8_t max_session,
tBTA_JV_RFCOMM_CBACK* p_cback,
uint32_t rfcomm_slot_id) {
uint16_t handle = 0;
if (!p_cback) return BTA_JV_FAILURE; /* Nothing to do */
do_in_main_thread(FROM_HERE,
- Bind(&bta_jv_rfcomm_connect, sec_mask, role, remote_scn,
+ Bind(&bta_jv_rfcomm_connect, sec_mask, remote_scn,
peer_bd_addr, p_cback, rfcomm_slot_id));
return BTA_JV_SUCCESS;
}
}
do_in_main_thread(FROM_HERE,
- Bind(&bta_jv_rfcomm_start_server, sec_mask, role, local_scn,
+ Bind(&bta_jv_rfcomm_start_server, sec_mask, local_scn,
max_session, p_cback, rfcomm_slot_id));
return BTA_JV_SUCCESS;
}
uint32_t l2cap_socket_id);
extern void bta_jv_l2cap_write(uint32_t handle, uint32_t req_id, BT_HDR* msg,
uint32_t user_id, tBTA_JV_L2C_CB* p_cb);
-extern void bta_jv_rfcomm_connect(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
- uint8_t remote_scn,
+extern void bta_jv_rfcomm_connect(tBTA_SEC sec_mask, uint8_t remote_scn,
const RawAddress& peer_bd_addr,
tBTA_JV_RFCOMM_CBACK* p_cback,
uint32_t rfcomm_slot_id);
extern void bta_jv_rfcomm_close(uint32_t handle, uint32_t rfcomm_slot_id);
-extern void bta_jv_rfcomm_start_server(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
- uint8_t local_scn, uint8_t max_session,
+extern void bta_jv_rfcomm_start_server(tBTA_SEC sec_mask, uint8_t local_scn,
+ uint8_t max_session,
tBTA_JV_RFCOMM_CBACK* p_cback,
uint32_t rfcomm_slot_id);
extern void bta_jv_rfcomm_stop_server(uint32_t handle, uint32_t rfcomm_slot_id);