mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
Bug 1033961: Asynchronous remote-service methods in Bluedroid (under bluetooth2/), r=btian
This commit is contained in:
parent
110e090d93
commit
83272ecf5c
@ -656,17 +656,31 @@ BluetoothInterface::SetRemoteDeviceProperty(bt_bdaddr_t* aRemoteAddr,
|
||||
|
||||
/* Remote Services */
|
||||
|
||||
int
|
||||
void
|
||||
BluetoothInterface::GetRemoteServiceRecord(bt_bdaddr_t* aRemoteAddr,
|
||||
bt_uuid_t* aUuid)
|
||||
bt_uuid_t* aUuid,
|
||||
BluetoothResultHandler* aRes)
|
||||
{
|
||||
return mInterface->get_remote_service_record(aRemoteAddr, aUuid);
|
||||
int status = mInterface->get_remote_service_record(aRemoteAddr, aUuid);
|
||||
|
||||
if (aRes) {
|
||||
DispatchBluetoothResult(aRes,
|
||||
&BluetoothResultHandler::GetRemoteServiceRecord,
|
||||
status);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
BluetoothInterface::GetRemoteServices(bt_bdaddr_t* aRemoteAddr)
|
||||
void
|
||||
BluetoothInterface::GetRemoteServices(bt_bdaddr_t* aRemoteAddr,
|
||||
BluetoothResultHandler* aRes)
|
||||
{
|
||||
return mInterface->get_remote_services(aRemoteAddr);
|
||||
int status = mInterface->get_remote_services(aRemoteAddr);
|
||||
|
||||
if (aRes) {
|
||||
DispatchBluetoothResult(aRes,
|
||||
&BluetoothResultHandler::GetRemoteServices,
|
||||
status);
|
||||
}
|
||||
}
|
||||
|
||||
/* Discovery */
|
||||
|
@ -258,9 +258,11 @@ public:
|
||||
|
||||
/* Remote Services */
|
||||
|
||||
int GetRemoteServiceRecord(bt_bdaddr_t* aRemoteAddr,
|
||||
bt_uuid_t* aUuid);
|
||||
int GetRemoteServices(bt_bdaddr_t* aRemoteAddr);
|
||||
void GetRemoteServiceRecord(bt_bdaddr_t* aRemoteAddr,
|
||||
bt_uuid_t* aUuid,
|
||||
BluetoothResultHandler* aRes);
|
||||
void GetRemoteServices(bt_bdaddr_t* aRemoteAddr,
|
||||
BluetoothResultHandler* aRes);
|
||||
|
||||
/* Discovery */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user