Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Side by Side Diff: device/bluetooth/bluetooth_common.h

Issue 2063353002: device/bluetooth: split out transport enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove useless TransportMask Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_
7
8 #include "device/bluetooth/bluetooth_export.h"
9
10 // This file is for enums and small types common to several
11 // parts of bluetooth.
12
13 namespace device {
14
15 // Devices and adapters can support a number of transports,
16 // and bluetooth hosts can scan for devices based on the
17 // transports they support.
18 enum BluetoothTransport : uint8_t {
Eric Caruso 2016/06/15 22:32:10 As per offline discussion with ortuno@, using enum
19 BLUETOOTH_TRANSPORT_INVALID = 0x00,
20 // Valid transports are given as a bitset.
21 BLUETOOTH_TRANSPORT_CLASSIC = 0x01,
22 BLUETOOTH_TRANSPORT_LE = 0x02,
23 BLUETOOTH_TRANSPORT_DUAL =
24 (BLUETOOTH_TRANSPORT_CLASSIC | BLUETOOTH_TRANSPORT_LE)
25 };
26
27 } // namespace device
28
29 #endif // DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698