mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1038645: Asynchronous Bluetooth Handsfree voice-recognition functions (under bluetooth2/), r=btian
This commit is contained in:
parent
46caa9f422
commit
cdaab67638
@ -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