Bug 1033273 - Part 1: Add InitHfpInterface/DeinitHfpinterface. r=btian

This commit is contained in:
Shawn Huang 2014-07-03 00:04:00 -04:00
parent 07f4910a6f
commit a1f4838926
2 changed files with 28 additions and 0 deletions

View File

@ -146,6 +146,32 @@ BluetoothHfpManager::Init()
return true;
}
// static
void
BluetoothHfpManager::InitHfpInterface()
{
MOZ_ASSERT(NS_IsMainThread());
/**
* TODO:
* Implement InitHfpInterface() for applications that want to create SCO
* link without a HFP connection (e.g., VoIP).
*/
}
// static
void
BluetoothHfpManager::DeinitHfpInterface()
{
MOZ_ASSERT(NS_IsMainThread());
/**
* TODO:
* Implement DeinitHfpInterface() for applications that want to create SCO
* link without a HFP connection (e.g., VoIP).
*/
}
void
BluetoothHfpManager::HandleShutdown()
{

View File

@ -30,6 +30,8 @@ public:
static BluetoothHfpManager* Get();
virtual ~BluetoothHfpManager() { }
static void InitHfpInterface();
static void DeinitHfpInterface();
bool ConnectSco();
bool DisconnectSco();