summaryrefslogtreecommitdiffstats
path: root/stack/sdp/sdp_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'stack/sdp/sdp_api.c')
-rw-r--r--stack/sdp/sdp_api.c97
1 files changed, 0 insertions, 97 deletions
diff --git a/stack/sdp/sdp_api.c b/stack/sdp/sdp_api.c
index 5e27546d7..db40f993b 100644
--- a/stack/sdp/sdp_api.c
+++ b/stack/sdp/sdp_api.c
@@ -1390,100 +1390,3 @@ UINT8 SDP_SetTraceLevel (UINT8 new_level)
return(sdp_cb.trace_level);
}
-
-#if SDP_FOR_JV_INCLUDED == TRUE
-/*******************************************************************************
-**
-** Function SDP_ConnOpen
-**
-** Description This function creates a connection to the SDP server on the
-** given device.
-**
-** Returns 0, if failed to initiate connection. Otherwise, the handle.
-**
-*******************************************************************************/
-UINT32 SDP_ConnOpen (UINT8 *p_bd_addr, tSDP_DISC_RES_CB *p_rcb,
- tSDP_DISC_CMPL_CB *p_cb)
-{
-#if SDP_CLIENT_ENABLED == TRUE
- tCONN_CB *p_ccb;
- UINT32 idx = 0;
-
- if (!p_cb || !p_rcb)
- return(idx);
-
- /* Specific BD address */
- p_ccb = sdp_conn_originate (p_bd_addr);
-
- if (!p_ccb)
- return(idx);
-
- p_ccb->disc_state = SDP_DISC_WAIT_CONN;
- p_ccb->p_db = (tSDP_DISCOVERY_DB *)p_rcb;
- p_ccb->p_cb = p_cb;
-
- p_ccb->is_attr_search = SDP_IS_PASS_THRU;
-
- idx = (UINT32)(p_ccb - sdp_cb.ccb);
- return(UINT32)(idx + 1);
-#else
- return(0);
-#endif
-}
-
-/*******************************************************************************
-**
-** Function SDP_WriteData
-**
-** Description This function sends data to the connected SDP server.
-**
-** Returns TRUE if data is sent, FALSE if failed.
-**
-*******************************************************************************/
-BOOLEAN SDP_WriteData (UINT32 handle, BT_HDR *p_msg)
-{
-#if SDP_CLIENT_ENABLED == TRUE
- tCONN_CB *p_ccb = NULL;
-
- if (p_msg && (handle > 0) && (handle <= SDP_MAX_CONNECTIONS) )
- {
- p_ccb = &sdp_cb.ccb[handle - 1];
- if ( (p_ccb->con_state == SDP_STATE_CONNECTED) &&
- (p_ccb->con_flags & SDP_FLAGS_IS_ORIG) )
- {
- /* Start inactivity timer */
- btu_start_timer (&p_ccb->timer_entry, BTU_TTYPE_SDP, SDP_INACT_TIMEOUT);
- L2CA_DataWrite (p_ccb->connection_id, p_msg);
- return TRUE;
- }
- }
-#endif
- return FALSE;
-}
-
-/*******************************************************************************
-**
-** Function SDP_ConnClose
-**
-** Description This function is called to close a SDP connection.
-**
-** Parameters: handle - Handle of the connection returned by SDP_ConnOpen
-**
-** Returns TRUE if connection is closed, FALSE if failed to find the handle.
-**
-*******************************************************************************/
-BOOLEAN SDP_ConnClose (UINT32 handle)
-{
-#if SDP_CLIENT_ENABLED == TRUE
- tCONN_CB *p_ccb = NULL;
-
- if (handle > 0 && handle <= SDP_MAX_CONNECTIONS)
- {
- p_ccb = &sdp_cb.ccb[handle - 1];
- sdp_disconnect (p_ccb, SDP_SUCCESS);
- return TRUE;
- }
-#endif
- return FALSE;
-}
-#endif