Method

PackageKitResultsget_require_restart_worst

since: 0.5.2

Declaration [src]

PkRestartEnum
pk_results_get_require_restart_worst (
  PkResults* results
)

Description [src]

This method returns the ‘worst’ restart of all the transactions. It is needed as multiple sub-transactions may emit require-restart with different values, and we always want to get the most invasive of all.

For instance, if a transaction emits RequireRestart(system) and then RequireRestart(session) then pk_client_get_require_restart will return system as a session restart is implied with a system restart.

Available since: 0.5.2

Return value

Type: PkRestartEnum

A PkRestartEnum value, e.g. PK_RESTART_ENUM_SYSTEM, or PK_RESTART_ENUM_NONE if no restart was requested.