Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a8fc4d1 authored by Charlie Boutier's avatar Charlie Boutier
Browse files

Pandora: remove experiemental l2cap.proto

Bug: 367808704
Test: atest pts-bot:L2CAP
Change-Id: I5a9793af0ed020391fe8f4574bf8ff95547db194
parent f32474f5
Loading
Loading
Loading
Loading
+0 −62
Original line number Diff line number Diff line
syntax = "proto3";

package pandora;

option java_outer_classname = "L2capProto";

import "google/protobuf/empty.proto";
import "pandora/host.proto";

service L2CAP {
  // Create a L2CAP connection to a peer.
  rpc CreateLECreditBasedChannel(CreateLECreditBasedChannelRequest) returns (CreateLECreditBasedChannelResponse);
  // Send some data
  rpc SendData(SendDataRequest) returns (SendDataResponse);
  // Receive data
  rpc ReceiveData(ReceiveDataRequest) returns (ReceiveDataResponse);
  // Listen L2CAP channel for connection
  rpc ListenL2CAPChannel(ListenL2CAPChannelRequest) returns (ListenL2CAPChannelResponse);
  // Accept L2CAP connection
  rpc AcceptL2CAPChannel(AcceptL2CAPChannelRequest) returns (AcceptL2CAPChannelResponse);
}

// Request for the `OpenSource` method.
message CreateLECreditBasedChannelRequest {
  // The connection that will open the stream.
  Connection connection = 1;
  int32 psm = 2;
  bool secure = 3;
}

// Request for the `OpenSource` method.
message CreateLECreditBasedChannelResponse {}

message SendDataRequest {
  // The connection that will open the stream.
  Connection connection = 1;
  bytes data = 2;
}

message SendDataResponse {}

message ReceiveDataRequest {
  // The connection that will open the stream.
  Connection connection = 1;
}

message ReceiveDataResponse {
  bytes data = 1;
}

message ListenL2CAPChannelRequest{
  Connection connection = 1;
  bool secure = 2;
}

message ListenL2CAPChannelResponse {}

message AcceptL2CAPChannelRequest{
  Connection connection = 1;
}

message AcceptL2CAPChannelResponse {}
 No newline at end of file
+0 −5
Original line number Diff line number Diff line
@@ -54,10 +54,6 @@ genrule {
        "pandora_experimental/hid_grpc_aio.py",
        "pandora_experimental/hid_pb2.py",
        "pandora_experimental/hid_pb2.pyi",
        "pandora_experimental/l2cap_grpc.py",
        "pandora_experimental/l2cap_grpc_aio.py",
        "pandora_experimental/l2cap_pb2.py",
        "pandora_experimental/l2cap_pb2.pyi",
        "pandora_experimental/le_audio_grpc.py",
        "pandora_experimental/le_audio_grpc_aio.py",
        "pandora_experimental/le_audio_pb2.py",
@@ -118,7 +114,6 @@ filegroup {
        ":pandora_experimental-python-gen-src{pandora_experimental/hap_pb2.pyi}",
        ":pandora_experimental-python-gen-src{pandora_experimental/hfp_pb2.pyi}",
        ":pandora_experimental-python-gen-src{pandora_experimental/hid_pb2.pyi}",
        ":pandora_experimental-python-gen-src{pandora_experimental/l2cap_pb2.pyi}",
        ":pandora_experimental-python-gen-src{pandora_experimental/le_audio_pb2.pyi}",
        ":pandora_experimental-python-gen-src{pandora_experimental/map_pb2.pyi}",
        ":pandora_experimental-python-gen-src{pandora_experimental/mediaplayer_pb2.pyi}",