Method

PackageKitClientupgrade_system_async

since: 1.0.10

Declaration [src]

void
pk_client_upgrade_system_async (
  PkClient* client,
  PkBitfield transaction_flags,
  const gchar* distro_id,
  PkUpgradeKindEnum upgrade_kind,
  GCancellable* cancellable,
  PkProgressCallback progress_callback,
  gpointer progress_user_data,
  GAsyncReadyCallback callback_ready,
  gpointer user_data
)

Description [src]

This transaction will update the distro to the next version, which may involve just downloading the installer and setting up the boot device, or may involve doing an on-line upgrade.

The backend will decide what is best to do.

Available since: 1.0.10

This method completes asynchronously. Use () inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

transaction_flags

Type: PkBitfield

A transaction type bitfield.

distro_id

Type: const gchar*

A distro ID such as “fedora-14”.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
upgrade_kind

Type: PkUpgradeKindEnum

A PkUpgradeKindEnum such as PK_UPGRADE_KIND_ENUM_COMPLETE.

cancellable

Type: GCancellable

A GCancellable or NULL.

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

Type: PkProgressCallback

The function to run when the progress changes.

progress_user_data

Type: gpointer

Data to pass to progress_callback.

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

Type: GAsyncReadyCallback

The function to run on completion.

The argument can be NULL.
user_data

Type: gpointer

The data to pass to callback_ready.

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