Method
GrlSourceget_media_from_uri_sync
since: 0.2.0
Declaration [src]
GrlMedia*
grl_source_get_media_from_uri_sync (
GrlSource* source,
const gchar* uri,
const GList* keys,
GrlOperationOptions* options,
GError** error
)
Description [src]
Creates an instance of GrlMedia
representing the media resource
exposed at uri
.
It is recommended to call grl_source_test_media_from_uri()
before
invoking this to check whether the target source can theoretically do the resolution.
This method is synchronous.
Available since: 0.2.0
Parameters
uri
-
Type:
const gchar*
A URI that can be used to identify a media resource.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. keys
-
Type: A list of
None
A list of keys to resolve.
The data is owned by the caller of the method. options
-
Type:
GrlOperationOptions
Options wanted for that operation.
The data is owned by the caller of the method. error
-
Type:
GError **
The return location for a recoverable error.
The argument can be NULL
.If the return location is not NULL
, then you must initialize it to aNULL
GError*
.The argument will be left initialized to NULL
by the method if there are no errors.In case of error, the argument will be set to a newly allocated GError
; the caller will take ownership of the data, and be responsible for freeing it.
Return value
Type: GrlMedia
A filled GrlMedia
.
The caller of the method takes ownership of the data, and is responsible for freeing it. |