Function

GrlSourceResolveCb

Declaration

void
(* GrlSourceResolveCb) (
  GrlSource* source,
  guint operation_id,
  GrlMedia* media,
  gpointer user_data,
  const GError* error
)

Description [src]

Prototype for the callback passed to grl_source_resolve(). If the URI did not resolve to a valid media record, media will be NULL. If there was an error during resolution, error will be set.

If media is non-NULL, ownership of it is transferred to the callback, and it must be freed afterwards using g_object_unref().

Parameters

source

Type: GrlSource

A source.

The data is owned by the caller of the function.
operation_id

Type: guint

Operation identifier.

media

Type: GrlMedia

A data transfer object.

The called function takes ownership of the data, and is responsible for freeing it.
user_data

Type: gpointer

User data passed to grl_source_resolve()

The argument can be NULL.
The data is owned by the caller of the function.
error

Type: GError

Possible GError generated at processing.

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