diff options
author | jpawlowski <jpawlowski@chromium.org> | 2015-04-01 19:25:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-02 02:26:16 +0000 |
commit | e31829e63adc9d5b5d32dbe3934403f5282bd61f (patch) | |
tree | 169f02004de0a5a332d6fdeac485fc7f546d82b7 /chromeos/dbus/bluetooth_adapter_client.h | |
parent | 545fcbe4217cada9dc7e3b32f8c6bfc3263545f1 (diff) | |
download | chromium_src-e31829e63adc9d5b5d32dbe3934403f5282bd61f.zip chromium_src-e31829e63adc9d5b5d32dbe3934403f5282bd61f.tar.gz chromium_src-e31829e63adc9d5b5d32dbe3934403f5282bd61f.tar.bz2 |
chromeos/dbus: Add BluetoothAdapterClient::SetDiscoveryFilter
This patch make BluetoothAdapterClient able to call new BlueZ method, SetDiscoveryFilter.
BUG=407773
R=armansito@chromium.org
Review URL: https://codereview.chromium.org/1052643004
Cr-Commit-Position: refs/heads/master@{#323408}
Diffstat (limited to 'chromeos/dbus/bluetooth_adapter_client.h')
-rw-r--r-- | chromeos/dbus/bluetooth_adapter_client.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chromeos/dbus/bluetooth_adapter_client.h b/chromeos/dbus/bluetooth_adapter_client.h index 1bbe26f..df2dc20 100644 --- a/chromeos/dbus/bluetooth_adapter_client.h +++ b/chromeos/dbus/bluetooth_adapter_client.h @@ -22,6 +22,16 @@ namespace chromeos { // local Bluetooth Adapters. class CHROMEOS_EXPORT BluetoothAdapterClient : public DBusClient { public: + struct DiscoveryFilter { + DiscoveryFilter(); + ~DiscoveryFilter(); + + scoped_ptr<std::vector<std::string>> uuids; + scoped_ptr<int16_t> rssi; + scoped_ptr<uint16_t> pathloss; + scoped_ptr<std::string> transport; + }; + // Structure of properties associated with bluetooth adapters. struct Properties : public dbus::PropertySet { // The Bluetooth device address of the adapter. Read-only. @@ -137,6 +147,17 @@ class CHROMEOS_EXPORT BluetoothAdapterClient : public DBusClient { const base::Closure& callback, const ErrorCallback& error_callback) = 0; + // Sets the device discovery filter on the adapter with object path + // |object_path|. When this method is called with no filter parameter, filter + // is removed. + // SetDiscoveryFilter can be called before StartDiscovery. It is useful when + // client will create first discovery session, to ensure that proper scan + // will be started right after call to StartDiscovery. + virtual void SetDiscoveryFilter(const dbus::ObjectPath& object_path, + const DiscoveryFilter& discovery_filter, + const base::Closure& callback, + const ErrorCallback& error_callback) = 0; + // Creates the instance. static BluetoothAdapterClient* Create(); |