blob: ea0878b907d92e37a6e637e18e5d20713b5897d9 [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
19import ISupplicantIface;
20import ISupplicantP2pIfaceCallback;
21
22/**
23 * Interface exposed by wpa_supplicant for each P2P mode network
24 * interface (e.g p2p0) it controls.
25 */
26interface ISupplicantP2pIface extends ISupplicantIface {
27 /**
28 * Register for callbacks from this interface.
29 *
30 * These callbacks are invoked for events that are specific to this interface.
31 * Registration of multiple callback objects is supported. These objects must
32 * be automatically deleted when the corresponding client process is dead or
33 * if this interface is removed.
34 *
35 * @param callback An instance of the |ISupplicantP2pIfaceCallback| HIDL
36 * interface object.
37 * @return status Status of the operation.
38 * Possible status codes:
39 * |SupplicantStatusCode.SUCCESS|,
40 * |SupplicantStatusCode.FAILURE_UNKNOWN|,
41 * |SupplicantStatusCode.FAILURE_IFACE_INVALID|
42 */
43 registerCallback(ISupplicantP2pIfaceCallback callback)
44 generates (SupplicantStatus status);
45};