diff options
Diffstat (limited to 'device/bluetooth/bluetooth_adapter.h')
-rw-r--r-- | device/bluetooth/bluetooth_adapter.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h index e06b8bf..e099e32 100644 --- a/device/bluetooth/bluetooth_adapter.h +++ b/device/bluetooth/bluetooth_adapter.h @@ -398,6 +398,25 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter const CreateAdvertisementCallback& callback, const CreateAdvertisementErrorCallback& error_callback) = 0; + // The following methods are used to send various GATT observer events to + // observers. + void NotifyGattServiceAdded(BluetoothGattService* service); + void NotifyGattServiceRemoved(BluetoothGattService* service); + void NotifyGattServiceChanged(BluetoothGattService* service); + void NotifyGattServicesDiscovered(BluetoothDevice* device); + void NotifyGattDiscoveryComplete(BluetoothGattService* service); + void NotifyGattCharacteristicAdded( + BluetoothGattCharacteristic* characteristic); + void NotifyGattCharacteristicRemoved( + BluetoothGattCharacteristic* characteristic); + void NotifyGattDescriptorAdded(BluetoothGattDescriptor* descriptor); + void NotifyGattDescriptorRemoved(BluetoothGattDescriptor* descriptor); + void NotifyGattCharacteristicValueChanged( + BluetoothGattCharacteristic* characteristic, + const std::vector<uint8_t>& value); + void NotifyGattDescriptorValueChanged(BluetoothGattDescriptor* descriptor, + const std::vector<uint8_t>& value); + protected: friend class base::RefCounted<BluetoothAdapter>; friend class BluetoothDiscoverySession; |