Method

GUsbDeviceset_configuration

Declaration

gboolean
g_usb_device_set_configuration (
  GUsbDevice* self,
  gint configuration,
  GError** error
)

Description

Set the active bConfigurationValue for the device.

Warning: this function is synchronous.

Available since:0.1.0

Parameters

configuration gint
 

The configuration value to set.

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

Return value

Returns: gboolean
 

TRUE on success.