summaryrefslogtreecommitdiffstats
path: root/stack/sdp/sdp_api.c
diff options
context:
space:
mode:
authorZach Johnson <zachoverflow@google.com>2014-10-07 20:21:37 -0700
committerAndre Eisenbach <eisenbach@google.com>2015-03-16 16:51:36 -0700
commit14c80d98b0b6ea5e6f7a2302626cb61a38d17101 (patch)
treebbb1bc58fb7d428dda840602c4496e9547283bc9 /stack/sdp/sdp_api.c
parent39110ec88460421618330863807804e03594ef67 (diff)
downloadandroid_system_bt-14c80d98b0b6ea5e6f7a2302626cb61a38d17101.tar.gz
android_system_bt-14c80d98b0b6ea5e6f7a2302626cb61a38d17101.tar.bz2
android_system_bt-14c80d98b0b6ea5e6f7a2302626cb61a38d17101.zip
Refactor bta_jv functions
Remove unused L2CAP and SDP code to reduce distraction from unused code path. In general, if we need any of this behavior in the future, it's best to talk directly to the apis instead of through another layer.
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