UriHandlerT.gstUriGetLocation

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

template UriHandlerT(TStruct)
static
string
gstUriGetLocation
(
string uri
)

Parameters

uri string

A URI string

Return Value

Type: string

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. [transfer full]

Meta