Method

FwupdPluginPluginadd_firmware_gtype

since: 1.3.3

Declaration [src]

void
fu_plugin_add_firmware_gtype (
  FuPlugin* self,
  const gchar* id,
  GType gtype
)

Description [src]

Adds a firmware GType which is used when creating devices. If id is not specified then it is guessed using the GType name.

Plugins can use this method only in fu_plugin_init()

Available since: 1.3.3

Parameters

id

Type: const gchar*

An optional string describing the type, e.g. ihex

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
gtype

Type: GType

A GType e.g. FU_TYPE_FOO_FIRMWARE