/*************************************************************************
 * NAME
 *  mapcRegisterChannel
 *
 * DESCRIPTION 
 *  Register the RFCOMM Channel for accepting incoming connections 
 ************************************************************************/
void mapcRegisterChannel( uint8 mnsChannel )
{
   /* If the request is to populate a default SDP record, override
      the application proposed MNS channel with the default one */
    if( mapcGetSdpState() == mapc_sdp_reg_pending )
    {
         mnsChannel =  MAPC_DEFAULT_CHANNEL;
    } 

    /* Register the RFCOMM Channel for MNS Service */
    ConnectionRfcommAllocateChannel( mapcGetProfileTask(), mnsChannel );
}
void SppStartService(Task theAppTask )
{
    /* Is there already an SPP service initiated?  */
    if (sppsClientTask)
    {
        sendSppStartServiceCfm(spp_start_already_started);
    }
    else
    {
        sppsClientTask = theAppTask;
        ConnectionRfcommAllocateChannel(
               (Task)&sppsServiceTask, 
               SPP_DEFAULT_CHANNEL
               );
    }
}
/****************************************************************************
NAME	
	hfpHandleRfcommAllocateChannel

DESCRIPTION
	Request an RFCOMM channel to be allocated.

RETURNS
	void
*/
void hfpHandleRfcommAllocateChannel(HFP *hfp)
{
	/* Make the call to the connection lib */
	ConnectionRfcommAllocateChannel(&hfp->task);
}
/****************************************************************************
	Request an RFCOMM channel to be allocated.
*/
void aghfpHandleRfcommAllocateChannel(AGHFP *aghfp)
{
	/* Make the call to the connection lib */
	ConnectionRfcommAllocateChannel(&aghfp->task, 0);
}