* Function avdt_ccb_event * Description State machine event handling function for ccb * Returns Nothing.
* Function avdt_ccb_to_idx * Description Given a pointer to an ccb, return its index. * Returns Index of ccb.
* Function avdt_msg_send_cmd * Description This function is called to send a command message. The * sig_id parameter indicates the message type, p_params * points to the message parameters, if any. It gets a buffer * from the AVDTP command pool, executes the message building * function for this message type. It then queues the message * in the command queue for this CCB. * Returns Nothing.
* Function avdt_msg_send_rsp * Description This function is called to send a response message. The * sig_id parameter indicates the message type, p_params * points to the message parameters, if any. It gets a buffer * from the AVDTP command pool, executes the message building * function for this message type. It then queues the message * in the response queue for this CCB. * Returns Nothing.
* Function avdt_msg_send_rej * Description This function is called to send a reject message. The * sig_id parameter indicates the message type. It gets * a buffer from the AVDTP command pool and builds the * message based on the message type and the error code. * It then queues the message in the response queue for * this CCB. * Returns Nothing.
* Function avdt_ad_tc_tbl_by_st * Description Find adaption layer transport channel table entry matching * the given state. * Returns Pointer to matching entry. For control channel it returns * the matching entry. For media or other it returns the * first matching entry (there could be more than one).
* Function avdt_scb_verify * Description Verify the condition of a list of scbs. * Returns SEID that failed, or 0 if success.
* Function avdt_msg_send * Description Send, and if necessary fragment the next message. * Returns Congested state; TRUE if CCB congested, FALSE if not.
* Function avdt_ad_tc_tbl_by_type * Description This function retrieves the transport channel table entry * for a particular channel. * Returns Pointer to transport channel table entry.
* Function avdt_ad_write_req * Description This function is called by a CCB or SCB to send data to a * transport channel. It looks up the LCID of the channel * based on the type, CCB, and SCB (if present). Then it * passes the data to L2CA_DataWrite(). * Returns AVDT_AD_SUCCESS, if data accepted, else FALSE * AVDT_AD_CONGESTED, if data accepted and the channel is congested * AVDT_AD_FAILED, if error
* Function avdt_ad_open_req * Description This function is called by a CCB or SCB to open a transport * channel. This function allocates and initializes a * transport channel table entry. The channel can be opened * in two roles: as an initiator or acceptor. When opened * as an initiator the function will start an L2CAP connection. * When opened as an acceptor the function simply configures * the table entry to listen for an incoming channel. * Returns Nothing.
* Function avdt_ccb_cmd_fail * Description This function is called when there is a response timeout. * The currently pending command is freed and we fake a * reject message back to ourselves. * Returns void.
* Function avdt_ad_close_req * Description This function is called by a CCB or SCB to close a * transport channel. The function looks up the LCID for the * channel and calls L2CA_DisconnectReq(). * Returns Nothing.
* Function avdt_ccb_clear_cmds * Description This function is called when the signaling channel is * closed to clean up any pending commands. For each pending * command in the command queue, it frees the command and * calls the application callback function indicating failure. * Certain CCB variables are also initialized. * Returns void.
* Function avdt_ccb_snd_cmd * Description This function is called the send the next command, * if any, in the command queue. * Returns void.
* Function avdt_ccb_dealloc * Description Deallocate a stream control block. * Returns void.
* Function avdt_ccb_ll_closed * Description Clear commands from and deallocate CCB. * Returns void.
* Function avdt_ad_tc_tbl_alloc * Description Allocate an entry in the traffic channel table. * Returns Pointer to entry.
* Function avdt_ccb_chan_close * Description This function calls avdt_ad_close_req() to close a * signaling channel connection. * Returns void.
* Function avdt_ccb_ll_opened * Description Call callback on open. * Returns void.
* Function avdt_msg_send_grej * Description This function is called to send a general reject message. The * sig_id parameter indicates the message type. It gets * a buffer from the AVDTP command pool and builds the * message based on the message type and the error code. * It then queues the message in the response queue for * this CCB. * Returns Nothing.
* Function avdt_msg_ind * Description This function is called by the adaption layer when an * incoming message is received on the signaling channel. * It parses the message and sends an event to the appropriate * SCB or CCB for the message. * Returns Nothing.
* Function avdt_ccb_chan_open * Description This function calls avdt_ad_open_req() to * initiate a signaling channel connection. * Returns void.
* Function avdt_ccb_chk_close * Description This function checks for active streams on this CCB. * If there are none, it starts an idle timer. * Returns void.
* Function avdt_ccb_hdl_discover_rsp * Description This function is called when a discover response or * reject is received from the peer. It calls the application * callback function with the results. * Returns void.
* Function avdt_ccb_hdl_getcap_cmd * Description This function is called when a get capabilities command * is received from the peer. It retrieves the stream * configuration for the requested stream and initiates * sending of a get capabilities response. * Returns void.
* Function avdt_ccb_hdl_getcap_rsp * Description This function is called with a get capabilities response * or reject is received from the peer. It calls the * application callback function with the results. * Returns void.
* Function avdt_ccb_hdl_start_cmd * Description This function is called when a start command is received * from the peer. It verifies that all requested streams * are in the proper state. If so, it initiates sending of * a start response. Otherwise it sends a start reject. * Returns void.
* Function avdt_ccb_hdl_start_rsp * Description This function is called when a start response or reject * is received from the peer. Using the SEIDs stored in the * current command message, it sends a start response or start * reject event to each SCB associated with the command. * Returns void.
* Function avdt_ccb_hdl_suspend_cmd * Description This function is called when a suspend command is received * from the peer. It verifies that all requested streams are * in the proper state. If so, it initiates sending of a * suspend response. Otherwise it sends a suspend reject. * Returns void.
* Function avdt_ccb_hdl_suspend_rsp * Description This function is called when a suspend response or reject * is received from the peer. Using the SEIDs stored in the * current command message, it sends a suspend response or * suspend reject event to each SCB associated with the command. * Returns void.
* Function avdt_ccb_snd_discover_cmd * Description This function is called to send a discover command to the * peer. It copies variables needed for the procedure from * the event to the CCB. It marks the CCB as busy and then * sends a discover command. * Returns void.
* 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.
* Function avdt_ccb_snd_getcap_cmd * Description This function is called to send a get capabilities command * to the peer. It copies variables needed for the procedure * from the event to the CCB. It marks the CCB as busy and * then sends a get capabilities command. * Returns void.
* 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.
* Function avdt_ccb_snd_start_cmd * Description This function is called to send a start command to the * peer. It verifies that all requested streams are in the * proper state. If so, it sends a start command. Otherwise * send ourselves back a start reject. * Returns void.
* Function avdt_ccb_snd_start_rsp * Description This function is called to send a start response to the * peer. It takes the stream information passed in the event * and sends a start response. Then it sends a start event * to the SCB for each stream. * Returns void.
* Function avdt_ccb_snd_suspend_cmd * Description This function is called to send a suspend command to the * peer. It verifies that all requested streams are in the * proper state. If so, it sends a suspend command. * Otherwise it calls the callback function for each requested * stream and sends a suspend confirmation with failure. * Returns void.
* 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.
* Function avdt_ccb_free_cmd * Description This function is called when a response is received for a * currently pending command. The command is freed. * Returns void.
* Function avdt_ccb_cong_state * Description This function is called to set the congestion state for * the CCB. * Returns void.
* Function avdt_ccb_ret_cmd * Description This function is called to retransmit the currently * pending command. The retransmission count is incremented. * If the count reaches the maximum number of retransmissions, * the event is treated as a response timeout. * Returns void.
* Function avdt_ccb_snd_msg * Description * Returns void.
* Function avdt_ccb_set_reconn * Description This function is called to enable a reconnect attempt when * a channel transitions from closing to idle state. It sets * the reconn variable to TRUE. * Returns void.
* Function avdt_ccb_clr_reconn * Description This function is called to clear the reconn variable. * Returns void.
* Function avdt_ccb_chk_reconn * Description This function is called to check if a reconnect attempt * is enabled. If enabled, it sends an AVDT_CCB_UL_OPEN_EVT * to the CCB. If disabled, the CCB is deallocated. * Returns void.
* Function avdt_ccb_chk_timer * Description This function stops the CCB timer if the idle timer is * running. * Returns void.
* Function avdt_ccb_set_conn * Description Set CCB variables associated with AVDT_ConnectReq(). * Returns void.
* Function avdt_ccb_set_disconn * Description Set CCB variables associated with AVDT_DisconnectReq(). * Returns void.
* Function avdt_ccb_do_disconn * Description Do action associated with AVDT_DisconnectReq(). * Returns void.
* Function avdt_ccb_clear_ccb * Description This function clears out certain buffers, queues, and * other data elements of a ccb. * Returns void.
* Function avdt_msg_asmbl * Description Reassemble incoming message. * Returns Pointer to reassembled message; NULL if no message * available.