Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5507f9d0 authored by Ajay Panicker's avatar Ajay Panicker
Browse files

Add discovery state callback to adapter

Change-Id: Icb3afacc5a23603762f2b0c42244dc408b245dcc
parent 9b4fe701
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -244,6 +244,10 @@ void Adapter::AdapterPropertiesCallback(bt_status_t status,
  }
}

void Adapter::DiscoveryStateChangedCallback(bt_discovery_state_t state) {
  // This does nothing
}

bool Adapter::SetAdapterProperty(bt_property_type_t type,
                                 void* value, int length) {
  CHECK(length > 0);
+1 −0
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@ class Adapter : public hal::BluetoothInterface::Observer {
  void AdapterPropertiesCallback(bt_status_t status,
                                 int num_properties,
                                 bt_property_t* properties) override;
  void DiscoveryStateChangedCallback(bt_discovery_state_t state) override;

  // Sends a request to set the given HAL adapter property type and value.
  bool SetAdapterProperty(bt_property_type_t type, void* value, int length);