get_location


Description:


[ Version ( replacement = "Uri.get_location" ) ]
public string? get_location (string uri)

Extracts the location out of a given valid URI, ie.

the protocol and "://" are stripped from the URI, which means that the location returned includes the hostname if one is specified. The returned string must be freed using g_free.

Free-function: g_free

Parameters:

uri

A URI string

Returns:

the location for this URI. Returns null if the URI isn't valid. If the URI does not contain a location, an empty string is returned.


Namespace: Gst.URI
Package: gstreamer-1.0



2022 vala-language.org