Exemplo n.º 1
0
/*******************************************************************************
**
** Function         avdt_ccb_snd_getcap_rsp
**
** Description      This function is called to send a get capabilities response
**                  to the peer.  It takes the stream information passed in the
**                  event and sends a get capabilities response.
**
**
** Returns          void.
**
*******************************************************************************/
void avdt_ccb_snd_getcap_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data)
{
    UINT8 sig_id = AVDT_SIG_GETCAP;

    if (p_data->msg.hdr.sig_id == AVDT_SIG_GET_ALLCAP)
        sig_id = AVDT_SIG_GET_ALLCAP;

    /* send response */
    avdt_msg_send_rsp(p_ccb, sig_id, &p_data->msg);
}
Exemplo n.º 2
0
/*******************************************************************************
**
** Function         avdt_ccb_snd_suspend_rsp
**
** Description      This function is called to send a suspend response to the
**                  peer.  It takes the stream information passed in the event
**                  and sends a suspend response.  Then it sends a suspend event
**                  to the SCB for each stream.
**
**
** Returns          void.
**
*******************************************************************************/
void avdt_ccb_snd_suspend_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data)
{
    tAVDT_SCB *p_scb;
    int i;

    /* send response message */
    avdt_msg_send_rsp(p_ccb, AVDT_SIG_SUSPEND, &p_data->msg);

    /* send start event to each scb */
    for (i = 0; i < p_data->msg.multi.num_seps; i++) {
        if ((p_scb = avdt_scb_by_hdl(p_data->msg.multi.seid_list[i])) != NULL) {
            avdt_scb_event(p_scb, AVDT_SCB_MSG_SUSPEND_CMD_EVT, NULL);
        }
    }
}
Exemplo n.º 3
0
/*******************************************************************************
**
** Function         avdt_ccb_snd_discover_rsp
**
** Description      This function is called to send a discover response to
**                  the peer.  It takes the stream information passed in the
**                  event and sends a discover response.
**
**
** Returns          void.
**
*******************************************************************************/
void avdt_ccb_snd_discover_rsp(tAVDT_CCB *p_ccb, tAVDT_CCB_EVT *p_data)
{
    /* send response */
    avdt_msg_send_rsp(p_ccb, AVDT_SIG_DISCOVER, &p_data->msg);
}