trivial: Add RemoveDelay as a standard FuDevice quirk

This commit is contained in:
Richard Hughes 2020-06-05 12:17:21 +01:00
parent 5c2c782446
commit 2e3605ffdc
2 changed files with 5 additions and 0 deletions

View File

@ -1038,6 +1038,10 @@ fu_device_set_quirk_kv (FuDevice *self,
fu_device_set_priority (self, fu_common_strtoull (value));
return TRUE;
}
if (g_strcmp0 (key, FU_QUIRKS_REMOVE_DELAY) == 0) {
fu_device_set_remove_delay (self, fu_common_strtoull (value));
return TRUE;
}
if (g_strcmp0 (key, FU_QUIRKS_VERSION_FORMAT) == 0) {
fu_device_set_version_format (self, fwupd_version_format_from_string (value));
return TRUE;

View File

@ -65,3 +65,4 @@ gboolean fu_quirks_lookup_by_id_iter (FuQuirks *self,
#define FU_QUIRKS_PROTOCOL "Protocol"
#define FU_QUIRKS_UPDATE_MESSAGE "UpdateMessage"
#define FU_QUIRKS_PRIORITY "Priority"
#define FU_QUIRKS_REMOVE_DELAY "RemoveDelay"