blob: dcc5ddd4f13b5ed37eeaf06a1132485071b3bc09 [file] [log] [blame]
Android Auto Companion0d502552022-03-09 16:18:25 -08001/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.google.android.connecteddevice.transport;
18
19import com.google.android.connecteddevice.transport.IConnectionProtocol;
20
21/** Delegate for registering protocols to the platform. */
22interface IProtocolDelegate {
23 /** Add a protocol to the collection of supported protocols. */
24 void addProtocol(in IConnectionProtocol protocol);
25
Android Auto Companion6e80f2f2022-04-12 14:01:37 -070026 /** Add an OOB protocol to the collection of supported OOB protocols. */
27 void addOobProtocol(in IConnectionProtocol protocol);
28
Android Auto Companion0d502552022-03-09 16:18:25 -080029 /** Remove a protocol from the collection of supported protocols. */
30 void removeProtocol(in IConnectionProtocol protocol);
Android Auto Companion6e80f2f2022-04-12 14:01:37 -070031
32 /** Remove an OOB protocol to the collection of supported OOB protocols. */
33 void removeOobProtocol(in IConnectionProtocol protocol);
Android Auto Companion0d502552022-03-09 16:18:25 -080034}