mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 1038645: Asynchronous Bluetooth Handsfree voice-recognition functions (under bluetooth2/), r=btian
This commit is contained in:
parent
8d89f772f2
commit
051abd7a03
@ -694,16 +694,28 @@ BluetoothHandsfreeInterface::DisconnectAudio(
|
||||
|
||||
/* Voice Recognition */
|
||||
|
||||
bt_status_t
|
||||
BluetoothHandsfreeInterface::StartVoiceRecognition()
|
||||
void
|
||||
BluetoothHandsfreeInterface::StartVoiceRecognition(
|
||||
BluetoothHandsfreeResultHandler* aRes)
|
||||
{
|
||||
return mInterface->start_voice_recognition();
|
||||
bt_status_t status = mInterface->start_voice_recognition();
|
||||
|
||||
if (aRes) {
|
||||
DispatchBluetoothHandsfreeResult(
|
||||
aRes, &BluetoothHandsfreeResultHandler::StartVoiceRecognition, status);
|
||||
}
|
||||
}
|
||||
|
||||
bt_status_t
|
||||
BluetoothHandsfreeInterface::StopVoiceRecognition()
|
||||
void
|
||||
BluetoothHandsfreeInterface::StopVoiceRecognition(
|
||||
BluetoothHandsfreeResultHandler* aRes)
|
||||
{
|
||||
return mInterface->stop_voice_recognition();
|
||||
bt_status_t status = mInterface->stop_voice_recognition();
|
||||
|
||||
if (aRes) {
|
||||
DispatchBluetoothHandsfreeResult(
|
||||
aRes, &BluetoothHandsfreeResultHandler::StopVoiceRecognition, status);
|
||||
}
|
||||
}
|
||||
|
||||
/* Volume */
|
||||
|
@ -129,8 +129,8 @@ public:
|
||||
|
||||
/* Voice Recognition */
|
||||
|
||||
bt_status_t StartVoiceRecognition();
|
||||
bt_status_t StopVoiceRecognition();
|
||||
void StartVoiceRecognition(BluetoothHandsfreeResultHandler* aRes);
|
||||
void StopVoiceRecognition(BluetoothHandsfreeResultHandler* aRes);
|
||||
|
||||
/* Volume */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user