forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
device/bluetooth: split out transport enum
The transport enum can be reused to describe supported transport types for remote devices and adapters. As such, move it out in preparation for adding this functionality to transports and adapters. BUG=b:29268565 TEST=compile and run unit tests Review-Url: https://codereview.chromium.org/2063353002 Cr-Commit-Position: refs/heads/master@{#400798}
- Loading branch information
Showing
17 changed files
with
166 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// 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_ | ||
#define DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_ | ||
|
||
#include "device/bluetooth/bluetooth_export.h" | ||
|
||
// This file is for enums and small types common to several | ||
// parts of bluetooth. | ||
|
||
namespace device { | ||
|
||
// Devices and adapters can support a number of transports, | ||
// and bluetooth hosts can scan for devices based on the | ||
// transports they support. | ||
enum BluetoothTransport : uint8_t { | ||
BLUETOOTH_TRANSPORT_INVALID = 0x00, | ||
// Valid transports are given as a bitset. | ||
BLUETOOTH_TRANSPORT_CLASSIC = 0x01, | ||
BLUETOOTH_TRANSPORT_LE = 0x02, | ||
BLUETOOTH_TRANSPORT_DUAL = | ||
(BLUETOOTH_TRANSPORT_CLASSIC | BLUETOOTH_TRANSPORT_LE) | ||
}; | ||
|
||
} // namespace device | ||
|
||
#endif // DEVICE_BLUETOOTH_BLUETOOTH_TYPES_H_ |
Oops, something went wrong.