Method
PackageKitTaskupgrade_system_async
since: 1.0.12
Declaration [src]
void
pk_task_upgrade_system_async (
PkTask* task,
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.12
This method completes asynchronously. Use () inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
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:
PkUpgradeKindEnumA
PkUpgradeKindEnumsuch asPK_UPGRADE_KIND_ENUM_COMPLETE. cancellable-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the method. progress_callback-
Type:
PkProgressCallbackThe function to run when the progress changes.
progress_user_data-
Type:
gpointerData to pass to
progress_callback.The argument can be NULL.The data is owned by the caller of the method. callback_ready-
Type:
GAsyncReadyCallbackThe function to run on completion.
The argument can be NULL. user_data-
Type:
gpointerThe data to pass to
callback_ready.The argument can be NULL.The data is owned by the caller of the method.