mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 04:23:21 +00:00
trivial: Add a vfunc for setting the quirk KVs in derived objects
This commit is contained in:
parent
163947bd5f
commit
168a209a14
@ -562,6 +562,10 @@ fu_device_set_quirk_kv (FuDevice *device,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* optional device-specific method */
|
||||
if (klass->set_quirk_kv != NULL)
|
||||
return klass->set_quirk_kv (device, key, value, error);
|
||||
|
||||
/* failed */
|
||||
g_set_error_literal (error,
|
||||
G_IO_ERROR,
|
||||
|
@ -40,8 +40,12 @@ struct _FuDeviceClass
|
||||
GBytes *(*prepare_firmware) (FuDevice *device,
|
||||
GBytes *fw,
|
||||
GError **error);
|
||||
gboolean (*set_quirk_kv) (FuDevice *device,
|
||||
const gchar *key,
|
||||
const gchar *value,
|
||||
GError **error);
|
||||
/*< private >*/
|
||||
gpointer padding[24];
|
||||
gpointer padding[23];
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user