Constructor
FwupdPluginUsbDevicenew
Declaration [src]
FuUsbDevice*
fu_usb_device_new (
FuContext* ctx,
GUsbDevice* usb_device
)
Parameters
ctx |
FuContext |
A |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
usb_device |
GUsbDevice* |
A USB device. |
|
The data is owned by the caller of the function. |
Return value
Returns: | FuUsbDevice |
A |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |