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:
Richard Hughes 2021-04-19 10:15:48 +01:00
parent 64416bcd0a
commit d42bd85059
4 changed files with 10 additions and 10 deletions

View File

@ -917,7 +917,7 @@ fwupd_security_attr_array_from_variant (GVariant *value)
/** /**
* fwupd_security_attr_new: * 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. * Creates a new self.
* *

View File

@ -2120,7 +2120,7 @@ fu_memdup_safe (const guint8 *src, gsize n, GError **error)
* @buf: source buffer * @buf: source buffer
* @bufsz: maximum size of @buf, typically `sizeof(buf)` * @bufsz: maximum size of @buf, typically `sizeof(buf)`
* @offset: offset in bytes into @buf to copy from * @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 * @error: A #GError or %NULL
* *
* Read a value from a buffer in a safe way. * 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 * @buf: source buffer
* @bufsz: maximum size of @buf, typically `sizeof(buf)` * @bufsz: maximum size of @buf, typically `sizeof(buf)`
* @offset: offset in bytes into @buf to copy from * @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 * @endian: A #FuEndianType, e.g. %G_LITTLE_ENDIAN
* @error: A #GError or %NULL * @error: A #GError or %NULL
* *
@ -2200,7 +2200,7 @@ fu_common_read_uint16_safe (const guint8 *buf,
* @buf: source buffer * @buf: source buffer
* @bufsz: maximum size of @buf, typically `sizeof(buf)` * @bufsz: maximum size of @buf, typically `sizeof(buf)`
* @offset: offset in bytes into @buf to copy from * @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 * @endian: A #FuEndianType, e.g. %G_LITTLE_ENDIAN
* @error: A #GError or %NULL * @error: A #GError or %NULL
* *
@ -2241,7 +2241,7 @@ fu_common_read_uint32_safe (const guint8 *buf,
* @buf: source buffer * @buf: source buffer
* @bufsz: maximum size of @buf, typically `sizeof(buf)` * @bufsz: maximum size of @buf, typically `sizeof(buf)`
* @offset: offset in bytes into @buf to copy from * @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 * @endian: A #FuEndianType, e.g. %G_LITTLE_ENDIAN
* @error: A #GError or %NULL * @error: A #GError or %NULL
* *

View File

@ -1874,7 +1874,7 @@ fu_device_set_version_format (FuDevice *self, FwupdVersionFormat fmt)
/** /**
* fu_device_set_version: * fu_device_set_version:
* @self: A #FuDevice * @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. * 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: * fu_device_set_version_lowest:
* @self: A #FuDevice * @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. * 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: * fu_device_set_version_bootloader:
* @self: A #FuDevice * @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. * Sets the device bootloader version, sanitizing the string if required.
* *
@ -2051,7 +2051,7 @@ fu_device_ensure_inhibits (FuDevice *self)
* fu_device_inhibit: * fu_device_inhibit:
* @self: A #FuDevice * @self: A #FuDevice
* @inhibit_id: an ID used for uninhibiting, e.g. `low-power` * @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 * Prevent the device from being updated, changing it from %FWUPD_DEVICE_FLAG_UPDATABLE
* to %FWUPD_DEVICE_FLAG_UPDATABLE_HIDDEN if not already inhibited. * to %FWUPD_DEVICE_FLAG_UPDATABLE_HIDDEN if not already inhibited.

View File

@ -1353,7 +1353,7 @@ fu_udev_device_close (FuDevice *device, GError **error)
* @self: A #FuUdevDevice * @self: A #FuUdevDevice
* @request: request number * @request: request number
* @buf: A buffer to use, which *must* be large enough for the request * @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 * @error: A #GError, or %NULL
* *
* Control a device using a low-level request. * Control a device using a low-level request.