mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 07:06:11 -04:00
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I83ec7dee1a7ef6f4bdfd47482c94d03910525b7e
41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
// Copyright 2020 Google LLC
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef CORE_V2_INTERNAL_PCP_H_
|
|
#define CORE_V2_INTERNAL_PCP_H_
|
|
|
|
namespace location {
|
|
namespace nearby {
|
|
namespace connections {
|
|
|
|
// The PreConnectionProtocol (PCP) defines the combinations of interactions
|
|
// between the techniques (ultrasound audio, Bluetooth device names, BLE
|
|
// advertisements) used for offline Advertisement + Discovery, and identifies
|
|
// the steps to go through on each device.
|
|
//
|
|
// See go/nearby-offline-data-interchange-formats for more.
|
|
enum class Pcp {
|
|
kUnknown = 0,
|
|
kP2pStar = 1,
|
|
kP2pCluster = 2,
|
|
kP2pPointToPoint = 3,
|
|
// PCP is only allocated 5 bits in our data interchange formats, so there can
|
|
// never be more than 31 PCP values.
|
|
};
|
|
} // namespace connections
|
|
} // namespace nearby
|
|
} // namespace location
|
|
|
|
#endif // CORE_V2_INTERNAL_PCP_H_
|