blob: 34727c41e1518fb159166e0aadcee94c1889a363 [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 ISupplicantNetwork;
20import ISupplicantP2pNetworkCallback;
21
22/**
Roshan Pius8c6a8772016-11-03 09:37:57 -070023 * Interface exposed by the supplicant for each P2P mode network
Roshan Pius39f588f2016-10-31 14:51:27 -070024 * configuration it controls.
25 */
26interface ISupplicantP2pNetwork extends ISupplicantNetwork {
27 /**
28 * Register for callbacks from this network.
29 *
30 * These callbacks are invoked for events that are specific to this network.
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 network is removed.
34 *
35 * @param callback An instance of the |ISupplicantP2pNetworkCallback| HIDL
36 * interface object.
37 * @return status P2ptus of the operation.
38 * Possible status codes:
39 * |SupplicantP2ptusCode.SUCCESS|,
40 * |SupplicantP2ptusCode.FAILURE_UNKNOWN|,
41 * |SupplicantP2ptusCode.FAILURE_NETWORK_INVALID|
42 */
43 registerCallback(ISupplicantP2pNetworkCallback callback)
44 generates (SupplicantStatus status);
45};