• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1syntax = "proto3";
2
3package bluetooth.hci;
4
5import "google/protobuf/empty.proto";
6import "facade/common.proto";
7
8service LeInitiatorAddressFacade {
9  rpc SetPrivacyPolicyForInitiatorAddress(PrivacyPolicy) returns (google.protobuf.Empty) {}
10  rpc GetCurrentInitiatorAddress(google.protobuf.Empty) returns (bluetooth.facade.BluetoothAddressWithType) {}
11  rpc GetAnotherAddress(google.protobuf.Empty) returns (bluetooth.facade.BluetoothAddressWithType) {}
12}
13
14enum AddressPolicy {
15  POLICY_NOT_SET = 0x00;
16  USE_PUBLIC_ADDRESS = 0x01;
17  USE_STATIC_ADDRESS = 0x02;
18  USE_NON_RESOLVABLE_ADDRESS = 0x03;
19  USE_RESOLVABLE_ADDRESS = 0x04;
20}
21
22message PrivacyPolicy {
23  AddressPolicy address_policy = 1;
24  facade.BluetoothAddressWithType address_with_type = 2;
25  bytes rotation_irk = 3;
26  uint64 minimum_rotation_time = 4;
27  uint64 maximum_rotation_time = 5;
28}
29