Chromium Code Reviews| Index: device/bluetooth/bluetooth_types.h |
| diff --git a/device/bluetooth/bluetooth_types.h b/device/bluetooth/bluetooth_types.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8c315f670bbccafb259f3ee41c1bcae5ba928e0d |
| --- /dev/null |
| +++ b/device/bluetooth/bluetooth_types.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_ |
|
ortuno
2016/06/15 18:12:27
optional: IMHO bluetooth_common.h would be better.
|
| +#define DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_ |
| + |
| +#include "device/bluetooth/bluetooth_export.h" |
| + |
| +namespace device { |
| + |
|
ortuno
2016/06/15 18:12:27
Add a comment about what goes in this file.
|
| +enum DEVICE_BLUETOOTH_EXPORT BluetoothTransport { |
|
ortuno
2016/06/15 18:12:27
Make this an enum class and remove the TRANSPORT p
|
| + TRANSPORT_INVALID = 0x00, |
| + // Valid transports are given as a bitset. |
| + TRANSPORT_CLASSIC = 0x01, |
| + TRANSPORT_LE = 0x02, |
| + TRANSPORT_DUAL = (TRANSPORT_CLASSIC | TRANSPORT_LE) |
| +}; |
| + |
| +} // namespace device |
| + |
| +#endif // DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_ |