Class

FwupdPluginDeviceLocker

Description [src]

final class FwupdPlugin.DeviceLocker : GObject.Object {
  /* No available fields */
}

Easily close a shared resource (such as a device) when an object goes out of scope.

See also: FuDevice

Ancestors

  • GObject

Constructors

fu_device_locker_new

Opens the device for use. When the FuDeviceLocker is deallocated the device will be closed and any error will just be directed to the console. This object is typically called using g_autoptr() but the device can also be manually closed using g_clear_object().

Available since: 1.0.0

fu_device_locker_new_full

Opens the device for use. When the FuDeviceLocker is deallocated the device will be closed and any error will just be directed to the console. This object is typically called using g_autoptr() but the device can also be manually closed using g_clear_object().

Available since: 1.0.0

Instance methods

fu_device_locker_close

Closes the locker before it gets cleaned up.

Available since: 1.4.0

Class structure

struct FwupdPluginDeviceLockerClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.