Index: device/bluetooth/bluetooth_device.h |
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h |
index 296449601cb9c683fa572e1031d664412323da78..bf145c9ad7e081dd9ab17361fa026c2991ca3188 100644 |
--- a/device/bluetooth/bluetooth_device.h |
+++ b/device/bluetooth/bluetooth_device.h |
@@ -31,6 +31,7 @@ namespace device { |
class BluetoothAdapter; |
class BluetoothGattConnection; |
+class BluetoothRemoteGattCharacteristic; |
class BluetoothSocket; |
class BluetoothUUID; |
@@ -555,6 +556,15 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice { |
// Return associated BluetoothAdapter. |
BluetoothAdapter* GetAdapter() { return adapter_; } |
+ std::vector<BluetoothRemoteGattCharacteristic*> GetCharacteristicsByUUID( |
+ const std::string& service_instance_id, |
+ const BluetoothUUID& characteristic_uuid); |
+ |
+ std::vector<BluetoothRemoteGattService*> GetPrimaryServicesByUUID( |
scheib
2017/01/07 01:42:36
In Bluetooth concepts, the Services come before Ch
juncai
2017/01/09 19:29:19
Done.
|
+ const BluetoothUUID& service_uuid); |
+ |
+ std::vector<BluetoothRemoteGattService*> GetPrimaryServices(); |
+ |
protected: |
// BluetoothGattConnection is a friend to call Add/RemoveGattConnection. |
friend BluetoothGattConnection; |