blob: 2b90cbaef6474a681b4be6224a746fb12025ea0e [file] [log] [blame]
Roshan Pius120f94c2016-10-13 11:48:42 -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@1.0;
18
19/**
20 * NAN Response and Event Callbacks.
21 */
22interface IWifiNanIfaceEventCallback {
23 /**
Roshan Piuse03f7362016-10-14 14:53:43 -070024 * Callback invoked to notify the status of the Publish Request.
25 *
26 * @param cmdId command Id corresponding to the original request.
27 * @param rspData Message Data.
Roshan Pius120f94c2016-10-13 11:48:42 -070028 */
Roshan Piuse03f7362016-10-14 14:53:43 -070029 oneway notifyPublishResponse(CommandId id, NanPublishResponseMsg rspData);
30
31 /**
32 * Callback invoked to notify the status of the Subscribe Request.
33 *
34 * @param cmdId command Id corresponding to the original request.
35 * @param rspData Message Data.
36 */
37 oneway notifySubscribeResponse(CommandId id, NanSubscribeResponseMsg rspData);
38
39 /**
40 * Callback invoked to notify the status of the Data Path Request.
41 *
42 * @param cmdId command Id corresponding to the original request.
43 * @param rspData Message Data.
44 */
45 oneway notifyDataPathResponse(CommandId id, NanDataPathResponseMsg rspData);
46
47 /**
48 * Callback invoked to notify the status of the Capability Request.
49 *
50 * @param cmdId command Id corresponding to the original request.
51 * @param rspData Message Data.
52 */
53 oneway notifyCapabilitiesResponse(CommandId id, NanCapabilitiesResponseMsg rspData);
Roshan Pius120f94c2016-10-13 11:48:42 -070054
55 /**
56 * Callbacks for the various asynchornous NAN Events.
57 */
58 oneway eventPublishTerminated(NanPublishTerminatedInd event);
59
60 oneway eventMatch(NanMatchInd event);
61
62 oneway eventMatchExpired(NanMatchExpiredInd event);
63
64 oneway eventSubscribeTerminated(NanSubscribeTerminatedInd event);
65
66 oneway eventFollowup(NanFollowupInd event);
67
68 oneway eventDiscEngEvent(NanDiscEngEventInd event);
69
70 oneway eventDisabled(NanDisabledInd event);
71
72 oneway eventBeaconSdfPayload(NanBeaconSdfPayloadInd event);
73
74 oneway eventDataRequest(NanDataPathRequestInd event);
75
76 oneway eventDataConfirm(NanDataPathConfirmInd event);
77
78 oneway eventDataEnd(NanDataPathEndInd event);
79
80 oneway eventTransmitFollowup(NanTransmitFollowupInd event);
81};