OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_COMPONENTS_TETHER_BLE_CONSTANTS_H_ | 5 #ifndef CHROMEOS_COMPONENTS_TETHER_BLE_CONSTANTS_H_ |
6 #define CHROMEOS_COMPONENTS_TETHER_BLE_CONSTANTS_H_ | 6 #define CHROMEOS_COMPONENTS_TETHER_BLE_CONSTANTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
11 | 11 |
12 namespace tether { | 12 namespace tether { |
13 | 13 |
14 // The maximum number of devices to which to advertise concurrently. If more | 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 | 15 // than this number of devices are registered, other advertisements must be |
16 // stopped before new ones can be added. | 16 // stopped before new ones can be added. |
17 // | 17 // |
18 // Note that this upper limit on concurrent advertisements is imposed due to a | 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 | 19 // hardware limit of advertisements (many devices have <10 total advertisement |
20 // slots). | 20 // slots). |
21 extern const int kMaxConcurrentAdvertisements; | 21 extern const uint8_t kMaxConcurrentAdvertisements; |
22 | 22 |
23 // The service UUID used for BLE advertisements. | 23 // The service UUID used for BLE advertisements. |
24 extern const char kAdvertisingServiceUuid[]; | 24 extern const char kAdvertisingServiceUuid[]; |
25 | 25 |
26 } // namespace tether | 26 } // namespace tether |
27 | 27 |
28 } // namespace chromeos | 28 } // namespace chromeos |
29 | 29 |
30 #endif // CHROMEOS_COMPONENTS_TETHER_BLE_CONSTANTS_H_ | 30 #endif // CHROMEOS_COMPONENTS_TETHER_BLE_CONSTANTS_H_ |
OLD | NEW |