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

[]

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().

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().

since: 1.0.0

[]

Instance methods

fu_device_locker_close

Closes the locker before it gets cleaned up.

since: 1.4.0

Methods inherited from GObject (43)
[]

Signals

Signals inherited from GObject (1)

Class structure