Method

GUsbDeviceget_string_descriptor_bytes_full

Declaration

GBytes*
g_usb_device_get_string_descriptor_bytes_full (
  GUsbDevice* self,
  guint8 desc_index,
  guint16 langid,
  gsize length,
  GError** error
)

Description

Get a raw string descriptor from the device. The returned string should be freed with g_bytes_unref() when no longer needed.

Available since:0.3.8

Parameters

desc_index guint8
 

The index for the string descriptor to retrieve.

langid guint16
 

The language ID.

length gsize
 

Size of the request data buffer.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GBytes
 

A possibly UTF-16 string, or NULL on error.

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