Method

GrlSourcebrowse_sync

since: 0.2.0

Declaration [src]

GList*
grl_source_browse_sync (
  GrlSource* source,
  GrlMedia* container,
  const GList* keys,
  GrlOperationOptions* options,
  GError** error
)

Description [src]

Browse media elements through an available list.

This method is synchronous.

Available since: 0.2.0

Parameters

container

Type: GrlMedia

A container of data transfer objects.

The argument can be NULL.
The data is owned by the caller of the method.
keys

Type: A list of None

The GList of GrlKeyIDs to request.

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 a NULL 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: A list of GrlMedia*

A GList with GrlMedia elements. After use g_object_unref() every element and g_list_free() the list.

The caller of the method takes ownership of the data, and is responsible for freeing it.