mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 06:33:49 +00:00
Add fwupd_client_get_status()
This commit is contained in:
parent
876c007b1a
commit
abf42df355
@ -860,6 +860,24 @@ fwupd_client_get_percentage (FwupdClient *client)
|
|||||||
return priv->percentage;
|
return priv->percentage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* fwupd_client_get_status:
|
||||||
|
* @client: A #FwupdClient
|
||||||
|
*
|
||||||
|
* Gets the last returned status value.
|
||||||
|
*
|
||||||
|
* Returns: a #FwupdStatus, or %FWUPD_STATUS_UNKNOWN for unknown.
|
||||||
|
*
|
||||||
|
* Since: 0.7.3
|
||||||
|
**/
|
||||||
|
FwupdStatus
|
||||||
|
fwupd_client_get_status (FwupdClient *client)
|
||||||
|
{
|
||||||
|
FwupdClientPrivate *priv = GET_PRIVATE (client);
|
||||||
|
g_return_val_if_fail (FWUPD_IS_CLIENT (client), FWUPD_STATUS_UNKNOWN);
|
||||||
|
return priv->status;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fwupd_client_update_metadata:
|
* fwupd_client_update_metadata:
|
||||||
* @client: A #FwupdClient
|
* @client: A #FwupdClient
|
||||||
|
@ -98,6 +98,7 @@ gboolean fwupd_client_update_metadata (FwupdClient *client,
|
|||||||
const gchar *signature_fn,
|
const gchar *signature_fn,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
FwupdStatus fwupd_client_get_status (FwupdClient *client);
|
||||||
guint fwupd_client_get_percentage (FwupdClient *client);
|
guint fwupd_client_get_percentage (FwupdClient *client);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
Loading…
Reference in New Issue
Block a user