Function

FwupdPlugincommon_uri_get_scheme

since: 1.5.6

Declaration [src]

gchar*
fu_common_uri_get_scheme (
  const gchar* uri
)

Description [src]

Returns the USI scheme for the given URI.

Available since: 1.5.6

Parameters

uri

Type: const gchar*

Valid URI, e.g. https://foo.bar/baz

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

Return value

Type: gchar*

Scheme value, or NULL if invalid, e.g. https

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.