1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @addtogroup Ethernet 18 * 19 * @brief Provides APIs for the upper-layer Ethernet service. 20 * 21 * You can use the APIs to enable or disable Extensible Authentication Protocol(EAP) via Ethernet. 22 * 23 * @since 6.0 24 * @version 1.0 25 */ 26 27/** 28 * @file IEthernetCallback.idl 29 * 30 * @brief Provides callbacks to be invoked when EAP event is received. 31 * 32 * @since 6.0 33 * @version 1.0 34 */ 35 36/** 37 * @brief Defines the package path of the Ethernet module interface. 38 * 39 * @since 6.0 40 * @version 1.0 41 */ 42package ohos.hdi.ethernet.v1_0; 43 44/** 45 * @brief Defines the callbacks of EAP event in Ethernet module. 46 * 47 * The callback is invoked when EAP event is received. 48 * 49 * @since 6.0 50 * @version 1.0 51 */ 52[callback] interface IEthernetCallback { 53 /** 54 * Used to handle EAP event callback parameters 55 * 56 * @param ifName Indicates the interface name(eg:eth0). 57 * @param value Indicates EAP event. 58 * 59 * @since 6.0 60 * @version 1.0 61 */ 62 OnEapEventNotify([in] String ifName, [in] String value); 63} 64