1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef HDF_IOSERVICE_STATUS_LISTENER_H 10 #define HDF_IOSERVICE_STATUS_LISTENER_H 11 12 #include "hdf_dlist.h" 13 #include "hdf_io_service_if.h" 14 #include "hdf_service_status.h" 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif /* __cplusplus */ 19 20 struct IoServiceStatusListener { 21 struct ServiceStatusListener svcstatListener; 22 struct HdfDevEventlistener ioservListener; 23 struct DListHead node; 24 uint16_t deviceClass; 25 }; 26 27 struct ServiceStatusListener *IoServiceStatusListenerNewInstance(void); 28 void IoServiceStatusListenerFree(struct ServiceStatusListener *listener); 29 30 #ifdef __cplusplus 31 } 32 #endif /* __cplusplus */ 33 34 #endif // HDF_IOSERVICE_STATUS_LISTENER_H 35