lesl | df75bc1 | 2020-08-04 17:04:57 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2020 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 | |
| 17 | package android.hardware.wifi.hostapd@1.3; |
| 18 | |
| 19 | import @1.2::IHostapd; |
| 20 | import @1.2::HostapdStatus; |
lesl | df75bc1 | 2020-08-04 17:04:57 +0800 | [diff] [blame] | 21 | import IHostapdCallback; |
lesl | d91c540 | 2020-08-10 13:23:29 +0800 | [diff] [blame] | 22 | |
lesl | df75bc1 | 2020-08-04 17:04:57 +0800 | [diff] [blame] | 23 | /** |
| 24 | * Top-level object for managing SoftAPs. |
| 25 | */ |
| 26 | interface IHostapd extends @1.2::IHostapd { |
| 27 | /** |
| 28 | * Register for callbacks from the hostapd service. |
| 29 | * |
| 30 | * These callbacks are invoked for global events that are not specific |
| 31 | * to any interface or network. Registration of multiple callback |
| 32 | * objects is supported. These objects must be deleted when the corresponding |
| 33 | * client process is dead. |
| 34 | * |
| 35 | * @param callback An instance of the |IHostapdCallback| HIDL interface |
| 36 | * object. |
| 37 | * @return status Status of the operation. |
| 38 | * Possible status codes: |
| 39 | * |HostapdStatusCode.SUCCESS|, |
| 40 | * |HostapdStatusCode.FAILURE_UNKNOWN| |
| 41 | */ |
lesl | d91c540 | 2020-08-10 13:23:29 +0800 | [diff] [blame] | 42 | registerCallback_1_3(IHostapdCallback callback) generates (HostapdStatus status); |
lesl | df75bc1 | 2020-08-04 17:04:57 +0800 | [diff] [blame] | 43 | }; |