mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 12:54:58 +00:00
trivial: Add fu_device_get_firmware_size_min()
This commit is contained in:
parent
23b1a9d3be
commit
4c6d61dc3a
@ -769,6 +769,42 @@ fu_device_set_firmware_size_max (FuDevice *self, guint64 size_max)
|
|||||||
priv->size_max = size_max;
|
priv->size_max = size_max;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* fu_device_get_firmware_size_min:
|
||||||
|
* @self: A #FuDevice
|
||||||
|
*
|
||||||
|
* Gets the minimum size of the firmware blob.
|
||||||
|
*
|
||||||
|
* Returns: Size in bytes, or 0 if unset
|
||||||
|
*
|
||||||
|
* Since: 1.2.6
|
||||||
|
**/
|
||||||
|
guint64
|
||||||
|
fu_device_get_firmware_size_min (FuDevice *self)
|
||||||
|
{
|
||||||
|
FuDevicePrivate *priv = GET_PRIVATE (self);
|
||||||
|
g_return_val_if_fail (FU_IS_DEVICE (self), 0);
|
||||||
|
return priv->size_min;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* fu_device_get_firmware_size_max:
|
||||||
|
* @self: A #FuDevice
|
||||||
|
*
|
||||||
|
* Gets the maximum size of the firmware blob.
|
||||||
|
*
|
||||||
|
* Returns: Size in bytes, or 0 if unset
|
||||||
|
*
|
||||||
|
* Since: 1.2.6
|
||||||
|
**/
|
||||||
|
guint64
|
||||||
|
fu_device_get_firmware_size_max (FuDevice *self)
|
||||||
|
{
|
||||||
|
FuDevicePrivate *priv = GET_PRIVATE (self);
|
||||||
|
g_return_val_if_fail (FU_IS_DEVICE (self), 0);
|
||||||
|
return priv->size_max;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
fu_device_add_guid_safe (FuDevice *self, const gchar *guid)
|
fu_device_add_guid_safe (FuDevice *self, const gchar *guid)
|
||||||
{
|
{
|
||||||
|
@ -190,6 +190,8 @@ void fu_device_set_firmware_size_min (FuDevice *self,
|
|||||||
guint64 size_min);
|
guint64 size_min);
|
||||||
void fu_device_set_firmware_size_max (FuDevice *self,
|
void fu_device_set_firmware_size_max (FuDevice *self,
|
||||||
guint64 size_max);
|
guint64 size_max);
|
||||||
|
guint64 fu_device_get_firmware_size_min (FuDevice *self);
|
||||||
|
guint64 fu_device_get_firmware_size_max (FuDevice *self);
|
||||||
guint fu_device_get_progress (FuDevice *self);
|
guint fu_device_get_progress (FuDevice *self);
|
||||||
void fu_device_set_progress (FuDevice *self,
|
void fu_device_set_progress (FuDevice *self,
|
||||||
guint progress);
|
guint progress);
|
||||||
|
Loading…
Reference in New Issue
Block a user