Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 CHROMEOS_COMPONENTS_BLE_CONSTANTS_H_ | |
|
Ryan Hansberry
2016/12/20 05:21:09
nit: should be CHROMEOS_COMPONENTS_TETHER_BLE_CONS
Kyle Horimoto
2016/12/20 05:31:32
Done.
| |
| 6 #define CHROMEOS_COMPONENTS_BLE_CONSTANTS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 namespace tether { | |
| 13 | |
| 14 // The maximum number of devices to which to advertise concurrently. If more | |
| 15 // than this number of devices are registered, other advertisements must be | |
| 16 // stopped before new ones can be added. | |
| 17 // | |
| 18 // Note that this upper limit on concurrent advertisements is imposed due to a | |
| 19 // hardware limit of advertisements (many devices have <10 total advertisement | |
| 20 // slots). | |
| 21 extern const int kMaxConcurrentAdvertisements; | |
|
Ryan Hansberry
2016/12/20 05:21:09
Will this need to be used anywhere else in the fut
Kyle Horimoto
2016/12/20 05:31:32
Yes, it will be used by the scanner and advertiser
| |
| 22 | |
| 23 // The service UUID used for BLE advertisements. | |
| 24 extern const char kAdvertisingServiceUuid[]; | |
| 25 | |
| 26 } // namespace tether | |
| 27 | |
| 28 } // namespace chromeos | |
| 29 | |
| 30 #endif // CHROMEOS_COMPONENTS_BLE_CONSTANTS_H_ | |
| OLD | NEW |