Function

FwupdPlugincommon_instance_id_strsafe

since: 1.7.6

Declaration [src]

gchar*
fu_common_instance_id_strsafe (
  const gchar* str
)

Description [src]

Sanitize the string used as part of the InstanceID.

Available since: 1.7.6

Parameters

str

Type: const gchar*

Part of the string to sanitize.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gchar*

A string, or NULL if invalid.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.