Constructor

FwupdPluginHidDevicenew

Declaration [src]

FuHidDevice*
fu_hid_device_new (
  GUsbDevice* usb_device
)

Description [src]

Creates a new HID device.

Available since:1.4.0

Parameters

usb_device GUsbDevice
 

A USB device.

 The data is owned by the caller of the function.

Return value

Returns: FuHidDevice
 

A FuHidDevice.

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