Top | ![]() |
![]() |
![]() |
![]() |
FwupdClient * | fwupd_client_new () |
gboolean | fwupd_client_connect () |
GPtrArray * | fwupd_client_get_devices () |
GPtrArray * | fwupd_client_get_updates () |
GPtrArray * | fwupd_client_get_details_local () |
gboolean | fwupd_client_verify () |
gboolean | fwupd_client_unlock () |
gboolean | fwupd_client_clear_results () |
FwupdResult * | fwupd_client_get_results () |
FwupdResult * | fwupd_client_get_details () |
gboolean | fwupd_client_install () |
gboolean | fwupd_client_update_metadata () |
FwupdStatus | fwupd_client_get_status () |
guint | fwupd_client_get_percentage () |
void | changed | Run Last |
void | device-added | Run Last |
void | device-changed | Run Last |
void | device-removed | Run Last |
void | status-changed | Run Last |
gboolean fwupd_client_connect (FwupdClient *client
,GCancellable *cancellable
,GError **error
);
Sets up the client ready for use. Most other methods call this for you, and do you only need to call this if you are just watching the client.
Since: 0.7.1
GPtrArray * fwupd_client_get_devices (FwupdClient *client
,GCancellable *cancellable
,GError **error
);
Gets all the devices registered with the daemon.
Since: 0.7.0
GPtrArray * fwupd_client_get_updates (FwupdClient *client
,GCancellable *cancellable
,GError **error
);
Gets all the devices with known updates.
Since: 0.7.0
GPtrArray * fwupd_client_get_details_local (FwupdClient *client
,const gchar *filename
,GCancellable *cancellable
,GError **error
);
Gets details about a specific firmware file.
client |
||
filename |
the firmware filename, e.g. "firmware.cab" |
|
cancellable |
the GCancellable, or |
|
error |
the GError, or |
Since: 0.7.2
gboolean fwupd_client_verify (FwupdClient *client
,const gchar *device_id
,GCancellable *cancellable
,GError **error
);
Verify a specific device.
client |
||
device_id |
the device ID |
|
cancellable |
the GCancellable, or |
|
error |
the GError, or |
Since: 0.7.0
gboolean fwupd_client_unlock (FwupdClient *client
,const gchar *device_id
,GCancellable *cancellable
,GError **error
);
Unlocks a specific device so firmware can be read or wrote.
client |
||
device_id |
the device ID |
|
cancellable |
the GCancellable, or |
|
error |
the GError, or |
Since: 0.7.0
gboolean fwupd_client_clear_results (FwupdClient *client
,const gchar *device_id
,GCancellable *cancellable
,GError **error
);
Clears the results for a specific device.
client |
||
device_id |
the device ID |
|
cancellable |
the GCancellable, or |
|
error |
the GError, or |
Since: 0.7.0
FwupdResult * fwupd_client_get_results (FwupdClient *client
,const gchar *device_id
,GCancellable *cancellable
,GError **error
);
Gets the results of a previous firmware update for a specific device.
client |
||
device_id |
the device ID |
|
cancellable |
the GCancellable, or |
|
error |
the GError, or |
Since: 0.7.0
FwupdResult * fwupd_client_get_details (FwupdClient *client
,const gchar *filename
,GCancellable *cancellable
,GError **error
);
fwupd_client_get_details
is deprecated and should not be used in newly-written code.
Gets details about a specific firmware file.
client |
||
filename |
the firmware filename, e.g. "firmware.cab" |
|
cancellable |
the GCancellable, or |
|
error |
the GError, or |
Since: 0.7.0
gboolean fwupd_client_install (FwupdClient *client
,const gchar *device_id
,const gchar *filename
,FwupdInstallFlags install_flags
,GCancellable *cancellable
,GError **error
);
Install a file onto a specific device.
client |
||
device_id |
the device ID |
|
filename |
the filename to install |
|
install_flags |
the FwupdInstallFlags, e.g. |
|
cancellable |
the GCancellable, or |
|
error |
the GError, or |
Since: 0.7.0
gboolean fwupd_client_update_metadata (FwupdClient *client
,const gchar *metadata_fn
,const gchar *signature_fn
,GCancellable *cancellable
,GError **error
);
Updates the metadata. This allows a session process to download the metadata and metadata signing file to be passed into the daemon to be checked and parsed.
client |
||
metadata_fn |
the XML metadata filename |
|
signature_fn |
the GPG signature file |
|
cancellable |
the GCancellable, or |
|
error |
the GError, or |
Since: 0.7.0
FwupdStatus
fwupd_client_get_status (FwupdClient *client
);
Gets the last returned status value.
Since: 0.7.3
guint
fwupd_client_get_percentage (FwupdClient *client
);
Gets the last returned percentage value.
Since: 0.7.3
struct FwupdClientClass { GObjectClass parent_class; void (*changed) (FwupdClient *client); void (*status_changed) (FwupdClient *client, FwupdStatus status); void (*device_added) (FwupdClient *client, FwupdResult *result); void (*device_removed) (FwupdClient *client, FwupdResult *result); void (*device_changed) (FwupdClient *client, FwupdResult *result); };
“percentage”
property “percentage” guint
The last-reported percentage of the daemon.
Flags: Read / Write
Allowed values: <= 100
Default value: 0
Since: 0.7.3
“status”
property “status” guint
The last-reported status of the daemon.
Flags: Read / Write
Allowed values: <= 8
Default value: 0
Since: 0.7.0
“changed”
signalvoid user_function (FwupdClient *client, gpointer user_data)
The ::changed signal is emitted when the daemon internal has changed, for instance when a device has been added or removed.
client |
the FwupdClient instance that emitted the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.7.0
“device-added”
signalvoid user_function (FwupdClient *client, FwupdResult *result, gpointer user_data)
The ::device-added signal is emitted when a device has been added.
client |
the FwupdClient instance that emitted the signal |
|
result |
the FwupdResult |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.7.1
“device-changed”
signalvoid user_function (FwupdClient *client, FwupdResult *result, gpointer user_data)
The ::device-changed signal is emitted when a device has been changed in some way, e.g. the version number is updated.
client |
the FwupdClient instance that emitted the signal |
|
result |
the FwupdResult |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.7.1
“device-removed”
signalvoid user_function (FwupdClient *client, FwupdResult *result, gpointer user_data)
The ::device-removed signal is emitted when a device has been removed.
client |
the FwupdClient instance that emitted the signal |
|
result |
the FwupdResult |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.7.1
“status-changed”
signalvoid user_function (FwupdClient *fwupdclient, guint arg1, gpointer user_data)
Flags: Run Last