tSDP_DI_RECORD rec;
}tSDP_DI_GET_RECORD;
-
-/*****************************************************************************
-** External Function Declarations
-*****************************************************************************/
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
/* API into the SDP layer for service discovery. */
/*******************************************************************************
** Returns TRUE if successful, FALSE if one or more parameters are bad
**
*******************************************************************************/
-extern BOOLEAN SDP_InitDiscoveryDb (tSDP_DISCOVERY_DB *p_db, UINT32 len,
+BOOLEAN SDP_InitDiscoveryDb (tSDP_DISCOVERY_DB *p_db, UINT32 len,
UINT16 num_uuid,
tSDP_UUID *p_uuid_list,
UINT16 num_attr,
** Returns TRUE if discovery cancelled, FALSE if a matching activity is not found.
**
*******************************************************************************/
-extern BOOLEAN SDP_CancelServiceSearch (tSDP_DISCOVERY_DB *p_db);
+BOOLEAN SDP_CancelServiceSearch (tSDP_DISCOVERY_DB *p_db);
/*******************************************************************************
**
** Returns TRUE if discovery started, FALSE if failed.
**
*******************************************************************************/
-extern BOOLEAN SDP_ServiceSearchRequest (UINT8 *p_bd_addr,
+BOOLEAN SDP_ServiceSearchRequest (UINT8 *p_bd_addr,
tSDP_DISCOVERY_DB *p_db,
tSDP_DISC_CMPL_CB *p_cb);
** Returns TRUE if discovery started, FALSE if failed.
**
*******************************************************************************/
-extern BOOLEAN SDP_ServiceSearchAttributeRequest (UINT8 *p_bd_addr,
+BOOLEAN SDP_ServiceSearchAttributeRequest (UINT8 *p_bd_addr,
tSDP_DISCOVERY_DB *p_db,
tSDP_DISC_CMPL_CB *p_cb);
** Returns TRUE if discovery started, FALSE if failed.
**
*******************************************************************************/
-extern BOOLEAN SDP_ServiceSearchAttributeRequest2 (UINT8 *p_bd_addr,
+BOOLEAN SDP_ServiceSearchAttributeRequest2 (UINT8 *p_bd_addr,
tSDP_DISCOVERY_DB *p_db,
tSDP_DISC_CMPL_CB2 *p_cb, void * user_data);
** Returns Pointer to matching record, or NULL
**
*******************************************************************************/
-extern tSDP_DISC_REC *SDP_FindAttributeInDb (tSDP_DISCOVERY_DB *p_db,
+tSDP_DISC_REC *SDP_FindAttributeInDb (tSDP_DISCOVERY_DB *p_db,
UINT16 attr_id,
tSDP_DISC_REC *p_start_rec);
** Returns Pointer to matching attribute entry, or NULL
**
*******************************************************************************/
-extern tSDP_DISC_ATTR *SDP_FindAttributeInRec (tSDP_DISC_REC *p_rec,
+tSDP_DISC_ATTR *SDP_FindAttributeInRec (tSDP_DISC_REC *p_rec,
UINT16 attr_id);
** Returns Pointer to record containing service class, or NULL
**
*******************************************************************************/
-extern tSDP_DISC_REC *SDP_FindServiceInDb (tSDP_DISCOVERY_DB *p_db,
+tSDP_DISC_REC *SDP_FindServiceInDb (tSDP_DISCOVERY_DB *p_db,
UINT16 service_uuid,
tSDP_DISC_REC *p_start_rec);
** Returns Pointer to record containing service class, or NULL
**
*******************************************************************************/
-extern tSDP_DISC_REC *SDP_FindServiceUUIDInDb (tSDP_DISCOVERY_DB *p_db,
+tSDP_DISC_REC *SDP_FindServiceUUIDInDb (tSDP_DISCOVERY_DB *p_db,
tBT_UUID *p_uuid,
tSDP_DISC_REC *p_start_rec);
** Returns TRUE if found, otherwise FALSE.
**
*******************************************************************************/
-extern BOOLEAN SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid);
+BOOLEAN SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC *p_rec, tBT_UUID * p_uuid);
/*******************************************************************************
**
** Returns Pointer to record containing service class, or NULL
**
*******************************************************************************/
-extern tSDP_DISC_REC *SDP_FindServiceInDb_128bit(tSDP_DISCOVERY_DB *p_db,
+tSDP_DISC_REC *SDP_FindServiceInDb_128bit(tSDP_DISCOVERY_DB *p_db,
tSDP_DISC_REC *p_start_rec);
/*******************************************************************************
** If found, the passed protocol list element is filled in.
**
*******************************************************************************/
-extern BOOLEAN SDP_FindProtocolListElemInRec (tSDP_DISC_REC *p_rec,
+BOOLEAN SDP_FindProtocolListElemInRec (tSDP_DISC_REC *p_rec,
UINT16 layer_uuid,
tSDP_PROTOCOL_ELEM *p_elem);
** If found, the passed protocol list element is filled in.
**
*******************************************************************************/
-extern BOOLEAN SDP_FindAddProtoListsElemInRec (tSDP_DISC_REC *p_rec,
+BOOLEAN SDP_FindAddProtoListsElemInRec (tSDP_DISC_REC *p_rec,
UINT16 layer_uuid,
tSDP_PROTOCOL_ELEM *p_elem);
** in are filled in.
**
*******************************************************************************/
-extern BOOLEAN SDP_FindProfileVersionInRec (tSDP_DISC_REC *p_rec,
+BOOLEAN SDP_FindProfileVersionInRec (tSDP_DISC_REC *p_rec,
UINT16 profile_uuid,
UINT16 *p_version);
** Returns Record handle if OK, else 0.
**
*******************************************************************************/
-extern UINT32 SDP_CreateRecord (void);
+UINT32 SDP_CreateRecord (void);
/*******************************************************************************
** Returns TRUE if succeeded, else FALSE
**
*******************************************************************************/
-extern BOOLEAN SDP_DeleteRecord (UINT32 handle);
+BOOLEAN SDP_DeleteRecord (UINT32 handle);
/*******************************************************************************
** The size of data copied into p_data is in *p_data_len.
**
*******************************************************************************/
-extern INT32 SDP_ReadRecord(UINT32 handle, UINT8 *p_data, INT32 *p_data_len);
+INT32 SDP_ReadRecord(UINT32 handle, UINT8 *p_data, INT32 *p_data_len);
/*******************************************************************************
**
** Returns TRUE if added OK, else FALSE
**
*******************************************************************************/
-extern BOOLEAN SDP_AddAttribute (UINT32 handle, UINT16 attr_id,
+BOOLEAN SDP_AddAttribute (UINT32 handle, UINT16 attr_id,
UINT8 attr_type, UINT32 attr_len,
UINT8 *p_val);
** Returns TRUE if added OK, else FALSE
**
*******************************************************************************/
-extern BOOLEAN SDP_AddSequence (UINT32 handle, UINT16 attr_id,
+BOOLEAN SDP_AddSequence (UINT32 handle, UINT16 attr_id,
UINT16 num_elem, UINT8 type[],
UINT8 len[], UINT8 *p_val[]);
** Returns TRUE if added OK, else FALSE
**
*******************************************************************************/
-extern BOOLEAN SDP_AddUuidSequence (UINT32 handle, UINT16 attr_id,
+BOOLEAN SDP_AddUuidSequence (UINT32 handle, UINT16 attr_id,
UINT16 num_uuids, UINT16 *p_uuids);
** Returns TRUE if added OK, else FALSE
**
*******************************************************************************/
-extern BOOLEAN SDP_AddProtocolList (UINT32 handle, UINT16 num_elem,
+BOOLEAN SDP_AddProtocolList (UINT32 handle, UINT16 num_elem,
tSDP_PROTOCOL_ELEM *p_elem_list);
** Returns TRUE if added OK, else FALSE
**
*******************************************************************************/
-extern BOOLEAN SDP_AddAdditionProtoLists (UINT32 handle, UINT16 num_elem,
+BOOLEAN SDP_AddAdditionProtoLists (UINT32 handle, UINT16 num_elem,
tSDP_PROTO_LIST_ELEM *p_proto_list);
** Returns TRUE if added OK, else FALSE
**
*******************************************************************************/
-extern BOOLEAN SDP_AddProfileDescriptorList (UINT32 handle,
+BOOLEAN SDP_AddProfileDescriptorList (UINT32 handle,
UINT16 profile_uuid,
UINT16 version);
-
/*******************************************************************************
**
** Function SDP_AddLanguageBaseAttrIDList
** Returns TRUE if added OK, else FALSE
**
*******************************************************************************/
-extern BOOLEAN SDP_AddLanguageBaseAttrIDList (UINT32 handle,
+BOOLEAN SDP_AddLanguageBaseAttrIDList (UINT32 handle,
UINT16 lang, UINT16 char_enc,
UINT16 base_id);
-
/*******************************************************************************
**
** Function SDP_AddServiceClassIdList
** Returns TRUE if added OK, else FALSE
**
*******************************************************************************/
-extern BOOLEAN SDP_AddServiceClassIdList (UINT32 handle,
+BOOLEAN SDP_AddServiceClassIdList (UINT32 handle,
UINT16 num_services,
UINT16 *p_service_uuids);
-
/*******************************************************************************
**
** Function SDP_DeleteAttribute
** Returns TRUE if deleted OK, else FALSE if not found
**
*******************************************************************************/
-extern BOOLEAN SDP_DeleteAttribute (UINT32 handle, UINT16 attr_id);
-
+BOOLEAN SDP_DeleteAttribute (UINT32 handle, UINT16 attr_id);
/* Device Identification APIs */
** Returns Returns SDP_SUCCESS if record added successfully, else error
**
*******************************************************************************/
-extern UINT16 SDP_SetLocalDiRecord (tSDP_DI_RECORD *device_info,
+UINT16 SDP_SetLocalDiRecord (tSDP_DI_RECORD *device_info,
UINT32 *p_handle);
/*******************************************************************************
** Returns SDP_SUCCESS if query started successfully, else error
**
*******************************************************************************/
-extern UINT16 SDP_DiDiscover (BD_ADDR remote_device,
+UINT16 SDP_DiDiscover (BD_ADDR remote_device,
tSDP_DISCOVERY_DB *p_db, UINT32 len,
tSDP_DISC_CMPL_CB *p_cb);
-
/*******************************************************************************
**
** Function SDP_GetNumDiRecords
** Returns number of DI records found
**
*******************************************************************************/
-extern UINT8 SDP_GetNumDiRecords (tSDP_DISCOVERY_DB *p_db);
-
+UINT8 SDP_GetNumDiRecords (tSDP_DISCOVERY_DB *p_db);
/*******************************************************************************
**
** Returns SDP_SUCCESS if record retrieved, else error
**
*******************************************************************************/
-extern UINT16 SDP_GetDiRecord (UINT8 getRecordIndex,
+UINT16 SDP_GetDiRecord (UINT8 getRecordIndex,
tSDP_DI_GET_RECORD *device_info,
tSDP_DISCOVERY_DB *p_db);
-
/*******************************************************************************
**
** Function SDP_SetTraceLevel
** Returns the new (current) trace level
**
*******************************************************************************/
-extern UINT8 SDP_SetTraceLevel (UINT8 new_level);
-
-/*******************************************************************************
-**
-** 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);
-
-/*******************************************************************************
-**
-** 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);
-
-/*******************************************************************************
-**
-** 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);
+UINT8 SDP_SetTraceLevel (UINT8 new_level);
/*******************************************************************************
**
*******************************************************************************/
BOOLEAN SDP_FindServiceUUIDInRec(tSDP_DISC_REC *p_rec, tBT_UUID *p_uuid);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* SDP_API_H */