Function

GrlSourceResultCb

Declaration

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

Description [src]

Prototype for the callback passed to the media sources’ methods.

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 argument can be NULL.
The called function takes ownership of the data, and is responsible for freeing it.
remaining

Type: guint

The number of remaining GrlMedia to process, or GRL_SOURCE_REMAINING_UNKNOWN if it is unknown.

user_data

Type: gpointer

User data passed to the used method.

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.