Constructor

FwupdPluginUsbDevicenew_with_context

Declaration [src]

FuUsbDevice*
fu_usb_device_new_with_context (
  FuContext* ctx,
  GUsbDevice* usb_device
)

Description [src]

Creates a new FuUsbDevice.

Available since:1.7.1

Parameters

ctx FuContext
 

A FuContext.

 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 FuUsbDevice.

 The caller of the function takes ownership of the data, and is responsible for freeing it.