Function

GioIOSchedulerJobFunc

Declaration

gboolean
(* GIOSchedulerJobFunc) (
  GIOSchedulerJob* job,
  GCancellable* cancellable,
  gpointer user_data
)

Description

I/O Job function.

Long-running jobs should periodically check the cancellable to see if they have been cancelled.

Parameters

job

Type: GIOSchedulerJob

A GIOSchedulerJob.

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

Type: GCancellable

Optional GCancellable object, NULL to ignore.

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

Type: gpointer

The data to pass to callback function.

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

Return value

Type: gboolean

TRUE if this function should be called again to complete the job, FALSE if the job is complete (or cancelled)