Chromium Code Reviews| Index: chromeos/components/tether/ble_constants.h |
| diff --git a/chromeos/components/tether/ble_constants.h b/chromeos/components/tether/ble_constants.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4b4041bb3c6be0f4bc076eceaae5bfa1bf065335 |
| --- /dev/null |
| +++ b/chromeos/components/tether/ble_constants.h |
| @@ -0,0 +1,30 @@ |
| +// 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 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.
|
| +#define CHROMEOS_COMPONENTS_BLE_CONSTANTS_H_ |
| + |
| +#include <string> |
| + |
| +namespace chromeos { |
| + |
| +namespace tether { |
| + |
| +// The maximum number of devices to which to advertise concurrently. If more |
| +// than this number of devices are registered, other advertisements must be |
| +// stopped before new ones can be added. |
| +// |
| +// Note that this upper limit on concurrent advertisements is imposed due to a |
| +// hardware limit of advertisements (many devices have <10 total advertisement |
| +// slots). |
| +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
|
| + |
| +// The service UUID used for BLE advertisements. |
| +extern const char kAdvertisingServiceUuid[]; |
| + |
| +} // namespace tether |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROMEOS_COMPONENTS_BLE_CONSTANTS_H_ |