mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-16 08:02:06 +00:00
trivial: Add RemoveDelay as a standard FuDevice quirk
This commit is contained in:
parent
5c2c782446
commit
2e3605ffdc
@ -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;
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user