Method
FwupdPluginDeviceretry_add_recovery
since: 1.4.0
Declaration [src]
void
fu_device_retry_add_recovery (
FuDevice* self,
GQuark domain,
gint code,
FuDeviceRetryFunc func
)
Description [src]
Sets the optional function to be called when fu_device_retry() fails, which
is possibly a device reset.
If func is NULL then recovery is not possible and an error is returned
straight away.
Available since: 1.4.0
Parameters
domain-
Type:
GQuarkA
GQuark, or0for all domains. code-
Type:
gintA
GErrorcode. func-
Type:
FuDeviceRetryFuncA function to recover the device.
The argument can be NULL.