blob: 1574e6af2dcbc4f171b35222d35ce1b2d70557ee [file] [log] [blame]
Roshan Pius39f588f2016-10-31 14:51:27 -07001/*
2 * Copyright 2016 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 android.hardware.wifi.supplicant@1.0;
18
19/**
20 * Callback Interface exposed by the wpa_supplicant service
21 * for each P2P mode interface (ISupplicantP2pIface).
22 *
23 * Clients need to host an instance of this HIDL interface object and
24 * pass a reference of the object to wpa_supplicant via the
25 * corresponding |ISupplicantP2pIface.registerCallback| method.
26 */
27interface ISupplicantP2pIfaceCallback {
28 /**
29 * Used to indicate that a new network has been added.
30 *
31 * @param id Network ID allocated to the corresponding network.
32 */
33 oneway onNetworkAdded(SupplicantNetworkId id);
34
35 /**
36 * Used to indicate that a network has been removed.
37 *
38 * @param id Network ID allocated to the corresponding network.
39 */
40 oneway onNetworkRemoved(SupplicantNetworkId id);
41};