1 /*
2  * Copyright (c) 2024 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 USB_PNP_MANAGE_H
10 #define USB_PNP_MANAGE_H
11 
12 #include "hdf_base.h"
13 #include "hdf_sbuf.h"
14 
15 struct UsbPnpManagerDeviceInfo {
16     struct HdfDeviceObject *usbPnpManager;
17     const char *moduleName;
18     const char *serviceName;
19     const char *deviceMatchAttr;
20     const void *privateData;
21     bool isReg;
22 };
23 
24 bool UsbPnpManagerWriteModuleName(struct HdfSBuf *sbuf, const char *moduleName);
25 int32_t UsbPnpManagerRegisterOrUnregisterDevice(struct UsbPnpManagerDeviceInfo *managerInfo);
26 
27 #endif /* USB_PNP_MANAGE_H */
28