AVRC_FindService() function
* Function AVRC_FindService * Description This function is called by the application to perform service * discovery and retrieve AVRCP SDP record information from a * peer device. Information is returned for the first service * record found on the server that matches the service UUID. * The callback function will be executed when service discovery * is complete. There can only be one outstanding call to * AVRC_FindService() at a time; the application must wait for * the callback before it makes another call to the function. * The application is responsible for allocating memory for the * discovery database. It is recommended that the size of the * discovery database be at least 300 bytes. The application * can deallocate the memory after the callback function has * executed. * Input Parameters: * service_uuid: Indicates TG(UUID_SERVCLASS_AV_REM_CTRL_TARGET) * or CT(UUID_SERVCLASS_AV_REMOTE_CONTROL) * bd_addr: BD address of the peer device. * p_db: SDP discovery database parameters. * p_cback: Pointer to the callback function. * Output Parameters: * None. * Returns AVRC_SUCCESS if successful. * AVRC_BAD_PARAMS if discovery database parameters are invalid. * AVRC_NO_RESOURCES if there are not enough resources to * perform the service search.
AVRC_FindService() is called by 1 function and calls 4 functions:
![]()
AVRC_FindService()
AVRC_FindService() reads 10 variables and writes 7 variables:
![]()
AVRC_FindService()