Class

FwupdPluginBackend

Description [src]

class FwupdPlugin.Backend : GObject.Object {
  parent_instance: GObject
}

An device discovery backend, for instance USB, BlueZ or UDev.

See also: FuDevice

Hierarchy

hierarchy this FuBackend ancestor_0 GObject ancestor_0--this

Ancestors

  • GObject

Instance methods

fu_backend_coldplug

Adds devices using the subclassed backend. If fu_backend_setup() has not already been called then it is run before this function automatically.

Available since: 1.6.1

fu_backend_device_added

Emits a signal that indicates the device has been added.

Available since: 1.6.1

fu_backend_device_changed

Emits a signal that indicates the device has been changed.

Available since: 1.6.1

fu_backend_device_removed

Emits a signal that indicates the device has been removed.

Available since: 1.6.1

fu_backend_get_context

Gets the context for a backend.

Available since: 1.6.1

fu_backend_get_devices

Gets all the devices added by the backend.

Available since: 1.6.1

fu_backend_get_enabled

Return the boolean value of a key if it’s been configured.

Available since: 1.6.1

fu_backend_get_name

Return the name of the backend, which is normally set by the subclass.

Available since: 1.6.1

fu_backend_lookup_by_id

Gets a device previously added by the backend.

Available since: 1.6.1

fu_backend_set_enabled

Sets the backend enabled state.

Available since: 1.6.1

fu_backend_setup

Sets up the backend ready for use, which typically calls the subclassed setup function. No devices should be added or removed at this point.

Available since: 1.6.1

Properties

FwupdPlugin.Backend:context
No description available.
FwupdPlugin.Backend:name
No description available.

Signals

FwupdPlugin.Backend::device-added
No description available.
FwupdPlugin.Backend::device-changed
No description available.
FwupdPlugin.Backend::device-removed
No description available.

Class structure

struct FwupdPluginBackendClass {
  GObjectClass parent_class;
  gboolean (* setup) (
    FuBackend* self,
    GError** error
  );
  gboolean (* coldplug) (
    FuBackend* self,
    GError** error
  );
  
}
Class members
parent_class
GObjectClass
  No description available.
setup
gboolean (* setup) (
    FuBackend* self,
    GError** error
  )
  No description available.
coldplug
gboolean (* coldplug) (
    FuBackend* self,
    GError** error
  )
  No description available.

Virtual methods

FwupdPlugin.BackendClass.coldplug

Adds devices using the subclassed backend. If fu_backend_setup() has not already been called then it is run before this function automatically.

Available since: 1.6.1

FwupdPlugin.BackendClass.setup

Sets up the backend ready for use, which typically calls the subclassed setup function. No devices should be added or removed at this point.

Available since: 1.6.1