mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-18 03:38:44 +00:00
trivial: Do not use the deprecated allow-none introspection argument
It's been deprecated since 2014... oops. https://blogs.gnome.org/desrt/2014/05/27/allow-none-is-dead-long-live-nullable/
This commit is contained in:
parent
64416bcd0a
commit
d42bd85059
@ -917,7 +917,7 @@ fwupd_security_attr_array_from_variant (GVariant *value)
|
||||
|
||||
/**
|
||||
* fwupd_security_attr_new:
|
||||
* @appstream_id: (allow-none): the AppStream component ID, e.g. `com.intel.BiosGuard`
|
||||
* @appstream_id: (nullable): the AppStream component ID, e.g. `com.intel.BiosGuard`
|
||||
*
|
||||
* Creates a new self.
|
||||
*
|
||||
|
@ -2120,7 +2120,7 @@ fu_memdup_safe (const guint8 *src, gsize n, GError **error)
|
||||
* @buf: source buffer
|
||||
* @bufsz: maximum size of @buf, typically `sizeof(buf)`
|
||||
* @offset: offset in bytes into @buf to copy from
|
||||
* @value: (out) (allow-none): the parsed value
|
||||
* @value: (out) (nullable): the parsed value
|
||||
* @error: A #GError or %NULL
|
||||
*
|
||||
* Read a value from a buffer in a safe way.
|
||||
@ -2159,7 +2159,7 @@ fu_common_read_uint8_safe (const guint8 *buf,
|
||||
* @buf: source buffer
|
||||
* @bufsz: maximum size of @buf, typically `sizeof(buf)`
|
||||
* @offset: offset in bytes into @buf to copy from
|
||||
* @value: (out) (allow-none): the parsed value
|
||||
* @value: (out) (nullable): the parsed value
|
||||
* @endian: A #FuEndianType, e.g. %G_LITTLE_ENDIAN
|
||||
* @error: A #GError or %NULL
|
||||
*
|
||||
@ -2200,7 +2200,7 @@ fu_common_read_uint16_safe (const guint8 *buf,
|
||||
* @buf: source buffer
|
||||
* @bufsz: maximum size of @buf, typically `sizeof(buf)`
|
||||
* @offset: offset in bytes into @buf to copy from
|
||||
* @value: (out) (allow-none): the parsed value
|
||||
* @value: (out) (nullable): the parsed value
|
||||
* @endian: A #FuEndianType, e.g. %G_LITTLE_ENDIAN
|
||||
* @error: A #GError or %NULL
|
||||
*
|
||||
@ -2241,7 +2241,7 @@ fu_common_read_uint32_safe (const guint8 *buf,
|
||||
* @buf: source buffer
|
||||
* @bufsz: maximum size of @buf, typically `sizeof(buf)`
|
||||
* @offset: offset in bytes into @buf to copy from
|
||||
* @value: (out) (allow-none): the parsed value
|
||||
* @value: (out) (nullable): the parsed value
|
||||
* @endian: A #FuEndianType, e.g. %G_LITTLE_ENDIAN
|
||||
* @error: A #GError or %NULL
|
||||
*
|
||||
|
@ -1874,7 +1874,7 @@ fu_device_set_version_format (FuDevice *self, FwupdVersionFormat fmt)
|
||||
/**
|
||||
* fu_device_set_version:
|
||||
* @self: A #FuDevice
|
||||
* @version: (allow-none): a string, e.g. `1.2.3`
|
||||
* @version: (nullable): a string, e.g. `1.2.3`
|
||||
*
|
||||
* Sets the device version, sanitizing the string if required.
|
||||
*
|
||||
@ -1917,7 +1917,7 @@ fu_device_set_version (FuDevice *self, const gchar *version)
|
||||
/**
|
||||
* fu_device_set_version_lowest:
|
||||
* @self: A #FuDevice
|
||||
* @version: (allow-none): a string, e.g. `1.2.3`
|
||||
* @version: (nullable): a string, e.g. `1.2.3`
|
||||
*
|
||||
* Sets the device lowest version, sanitizing the string if required.
|
||||
*
|
||||
@ -1960,7 +1960,7 @@ fu_device_set_version_lowest (FuDevice *self, const gchar *version)
|
||||
/**
|
||||
* fu_device_set_version_bootloader:
|
||||
* @self: A #FuDevice
|
||||
* @version: (allow-none): a string, e.g. `1.2.3`
|
||||
* @version: (nullable): a string, e.g. `1.2.3`
|
||||
*
|
||||
* Sets the device bootloader version, sanitizing the string if required.
|
||||
*
|
||||
@ -2051,7 +2051,7 @@ fu_device_ensure_inhibits (FuDevice *self)
|
||||
* fu_device_inhibit:
|
||||
* @self: A #FuDevice
|
||||
* @inhibit_id: an ID used for uninhibiting, e.g. `low-power`
|
||||
* @reason: (allow-none): a string, e.g. `Cannot update as foo [bar] needs reboot`
|
||||
* @reason: (nullable): a string, e.g. `Cannot update as foo [bar] needs reboot`
|
||||
*
|
||||
* Prevent the device from being updated, changing it from %FWUPD_DEVICE_FLAG_UPDATABLE
|
||||
* to %FWUPD_DEVICE_FLAG_UPDATABLE_HIDDEN if not already inhibited.
|
||||
|
@ -1353,7 +1353,7 @@ fu_udev_device_close (FuDevice *device, GError **error)
|
||||
* @self: A #FuUdevDevice
|
||||
* @request: request number
|
||||
* @buf: A buffer to use, which *must* be large enough for the request
|
||||
* @rc: (out) (allow-none): the raw return value from the ioctl
|
||||
* @rc: (out) (nullable): the raw return value from the ioctl
|
||||
* @error: A #GError, or %NULL
|
||||
*
|
||||
* Control a device using a low-level request.
|
||||
|
Loading…
Reference in New Issue
Block a user