The daemon version number.
The host machine-id string
The host product string
The host machine-id string
If the daemon is running in an interactive terminal
The last-reported percentage of the daemon.
The libsoup session, now unused.
The last-reported status of the daemon.
If the daemon is tainted by 3rd party code.
Activates up a device, which normally means the device switches to a new firmware version. This should only be called when data loss cannot occur.
the #GCancellable, or %NULL
a device
Activates up a device, which normally means the device switches to a new firmware version. This should only be called when data loss cannot occur.
a device
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_activate_async().
the #GAsyncResult
Creates a binding between source_property
on source
and target_property
on target
.
Whenever the source_property
is changed the target_property
is
updated using the same value. For instance:
g_object_bind_property (action, "active", widget, "sensitive", 0);
Will result in the "sensitive" property of the widget #GObject instance to be updated with the same value of the "active" property of the action #GObject instance.
If flags
contains %G_BINDING_BIDIRECTIONAL then the binding will be mutual:
if target_property
on target
changes then the source_property
on source
will be updated as well.
The binding will automatically be removed when either the source
or the
target
instances are finalized. To remove the binding without affecting the
source
and the target
you can just call g_object_unref() on the returned
#GBinding instance.
Removing the binding by calling g_object_unref() on it must only be done if
the binding, source
and target
are only used from a single thread and it
is clear that both source
and target
outlive the binding. Especially it
is not safe to rely on this if the binding, source
or target
can be
finalized from different threads. Keep another reference to the binding and
use g_binding_unbind() instead to be on the safe side.
A #GObject can have multiple bindings.
the property on source
to bind
the target #GObject
the property on target
to bind
flags to pass to #GBinding
Creates a binding between source_property
on source
and target_property
on target,
allowing you to set the transformation functions to be used by
the binding.
This function is the language bindings friendly version of g_object_bind_property_full(), using #GClosures instead of function pointers.
the property on source
to bind
the target #GObject
the property on target
to bind
flags to pass to #GBinding
a #GClosure wrapping the transformation function from the source
to the target,
or %NULL to use the default
a #GClosure wrapping the transformation function from the target
to the source,
or %NULL to use the default
Clears the results for a specific device.
the device ID
the #GCancellable, or %NULL
Clears the results for a specific device.
a device
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_clear_results_async().
the #GAsyncResult
Sets up the client ready for use. This is probably the first method you call when wanting to use libfwupd in an asynchronous manner.
Other methods such as fwupd_client_get_devices_async() should only be called after fwupd_client_connect_finish() has been called without an error.
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_connect_async().
the #GAsyncResult
Downloads data from a remote server. The fwupd_client_set_user_agent() function should be called before this method is used.
the remote URL
#FwupdClientDownloadFlags, e.g. %FWUPD_CLIENT_DOWNLOAD_FLAG_NONE
the #GCancellable, or %NULL
Downloads data from a remote server. The fwupd_client_set_user_agent() function should be called before this method is used.
You must have called fwupd_client_connect_async() on self
before using
this method.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with fwupd_client_set_main_context().
the remote URL
#FwupdClientDownloadFlags, e.g. %FWUPD_CLIENT_DOWNLOAD_FLAG_NONE
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_download_bytes_async().
the #GAsyncResult
Downloads data from a remote server. The fwupd_client_set_user_agent() function should be called before this method is used.
the remote URL
a #GFile
#FwupdClientDownloadFlags, e.g. %FWUPD_CLIENT_DOWNLOAD_FLAG_NONE
the #GCancellable, or %NULL
Sets up the client networking support ready for use. Most other download and upload methods call this automatically, and do you only need to call this if the session is being used outside the #FwupdClient.
This function is intended for #GObject implementations to re-enforce a [floating][floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling g_object_ref_sink().
Increases the freeze count on object
. If the freeze count is
non-zero, the emission of "notify" signals on object
is
stopped. The signals are queued until the freeze count is decreased
to zero. Duplicate notifications are squashed so that at most one
#GObject::notify signal is emitted for each property modified while the
object is frozen.
This is necessary for accessors that modify multiple properties to prevent premature notification while the object is still being modified.
Gets the list of approved firmware.
the #GCancellable, or %NULL
Gets the list of approved firmware.
You must have called fwupd_client_connect_async() on self
before using
this method.
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_approved_firmware_async().
the #GAsyncResult
Gets the list of blocked firmware.
the #GCancellable, or %NULL
Gets the list of blocked firmware.
You must have called fwupd_client_connect_async() on self
before using
this method.
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_blocked_firmware_async().
the #GAsyncResult
Gets if the daemon is running in an interactive terminal.
Gets the daemon version number.
Gets a named field from the objects table of associations (see g_object_set_data()).
name of the key for that association
Gets details about a specific firmware file.
the firmware filename, e.g. firmware.cab
the #GCancellable, or %NULL
Gets details about a specific firmware file.
the firmware blob, e.g. the contents of firmware.cab
the #GCancellable, or %NULL
Gets details about a specific firmware file.
a #GBytes for the firmware, e.g. firmware.cab
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_details_bytes_async().
the #GAsyncResult
Gets a device by it's device ID.
the device ID, e.g. usb:00:01:03:03
the #GCancellable, or %NULL
Gets a device by it's device ID.
You must have called fwupd_client_connect_async() on self
before using
this method.
the device ID
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_device_by_id_async().
the #GAsyncResult
Gets all the devices registered with the daemon.
the #GCancellable, or %NULL
Gets all the devices registered with the daemon.
You must have called fwupd_client_connect_async() on self
before using
this method.
the #GCancellable, or %NULL
the function to run on completion
Gets any devices that provide a specific GUID. An error is returned if no devices contains this GUID.
the GUID, e.g. e22c4520-43dc-5bb3-8245-5787fead9b63
the #GCancellable, or %NULL
Gets any devices that provide a specific GUID. An error is returned if no devices contains this GUID.
You must have called fwupd_client_connect_async() on self
before using
this method.
the GUID, e.g. e22c4520-43dc-5bb3-8245-5787fead9b63
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_devices_by_guid_async().
the #GAsyncResult
Gets the result of fwupd_client_get_devices_async().
the #GAsyncResult
Gets all the downgrades for a specific device.
the device ID
the #GCancellable, or %NULL
Gets all the downgrades for a specific device.
You must have called fwupd_client_connect_async() on self
before using
this method.
the device ID
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_downgrades_async().
the #GAsyncResult
Gets all the history.
the #GCancellable, or %NULL
Gets all the history.
You must have called fwupd_client_connect_async() on self
before using
this method.
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_history_async().
the #GAsyncResult
Gets the string that represents the host machine ID
Gets the string that represents the host running fwupd
Gets all the host security attributes from the daemon.
the #GCancellable, or %NULL
Gets all the host security attributes from the daemon.
You must have called fwupd_client_connect_async() on self
before using
this method.
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_host_security_attrs_async().
the #GAsyncResult
Gets the string that represents the host machine ID
Gets the internal #GMainContext to use for synchronous methods. By default the value is set a new #GMainContext.
Gets the last returned percentage value.
Gets all the plugins being used the daemon.
the #GCancellable, or %NULL
Gets all the plugins being used by the daemon.
You must have called fwupd_client_connect_async() on self
before using
this method.
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_plugins_async().
the #GAsyncResult
Gets a property of an object.
The value
can be:
In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling g_value_unset().
Note that g_object_get_property() is really intended for language bindings, g_object_get() is much more convenient for C programming.
the name of the property to get
return location for the property value
This function gets back user data pointers stored via g_object_set_qdata().
A #GQuark, naming the user data pointer
Gets all the releases for a specific device
the device ID
the #GCancellable, or %NULL
Gets all the releases for a specific device
You must have called fwupd_client_connect_async() on self
before using
this method.
the device ID
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_releases_async().
the #GAsyncResult
Gets a specific remote that has been configured for the system.
the remote ID, e.g. lvfs-testing
the #GCancellable, or %NULL
Gets a specific remote that has been configured for the system.
the remote ID, e.g. lvfs-testing
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_remote_by_id_async().
the #GAsyncResult
Gets the list of remotes that have been configured for the system.
the #GCancellable, or %NULL
Gets the list of remotes that have been configured for the system.
You must have called fwupd_client_connect_async() on self
before using
this method.
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_remotes_async().
the #GAsyncResult
Gets all the report metadata from the daemon.
the #GCancellable, or %NULL
Gets all the report metadata from the daemon.
You must have called fwupd_client_connect_async() on self
before using
this method.
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_report_metadata_async().
the #GAsyncResult
Gets the results of a previous firmware update for a specific device.
the device ID
the #GCancellable, or %NULL
Gets the results of a previous firmware update for a specific device.
You must have called fwupd_client_connect_async() on self
before using
this method.
the device ID
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_results_async().
the #GAsyncResult
Gets if the daemon has been tainted by 3rd party code.
Gets all the upgrades for a specific device.
the device ID
the #GCancellable, or %NULL
Gets all the upgrades for a specific device.
You must have called fwupd_client_connect_async() on self
before using
this method.
the device ID
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_get_upgrades_async().
the #GAsyncResult
Gets the string that represents the user agent that is used for uploading and downloading. The user agent will contain the runtime version of fwupd somewhere in the provided string.
Gets n_properties
properties for an object
.
Obtained properties will be set to values
. All properties must be valid.
Warnings will be emitted and undefined behaviour may result if invalid
properties are passed in.
the names of each property to get
the values of each property to get
Install a file onto a specific device.
the device ID
the filename to install
the #FwupdInstallFlags, e.g. %FWUPD_INSTALL_FLAG_ALLOW_REINSTALL
the #GCancellable, or %NULL
Install firmware onto a specific device.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with fwupd_client_set_main_context().
the device ID
the filename to install
the #FwupdInstallFlags, e.g. %FWUPD_INSTALL_FLAG_ALLOW_REINSTALL
the #GCancellable, or %NULL
the function to run on completion
Install firmware onto a specific device.
the device ID
#GBytes
the #FwupdInstallFlags, e.g. %FWUPD_INSTALL_FLAG_ALLOW_REINSTALL
the #GCancellable, or %NULL
Install firmware onto a specific device.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with fwupd_client_set_main_context().
the device ID
#GBytes
the #FwupdInstallFlags, e.g. %FWUPD_INSTALL_FLAG_ALLOW_REINSTALL
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_install_bytes_async().
the #GAsyncResult
Gets the result of fwupd_client_install_async().
the #GAsyncResult
Installs a new release on a device, downloading the firmware if required.
A #FwupdDevice
A #FwupdRelease
the #FwupdInstallFlags, e.g. %FWUPD_INSTALL_FLAG_ALLOW_REINSTALL
the #GCancellable, or %NULL
Installs a new release on a device, downloading the firmware if required.
A #FwupdDevice
A #FwupdRelease
the #FwupdInstallFlags, e.g. %FWUPD_INSTALL_FLAG_ALLOW_REINSTALL
the #FwupdClientDownloadFlags, e.g. %FWUPD_CLIENT_DOWNLOAD_FLAG_NONE
the #GCancellable, or %NULL
Installs a new release on a device, downloading the firmware if required.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with fwupd_client_set_main_context().
A #FwupdDevice
A #FwupdRelease
the #FwupdInstallFlags, e.g. %FWUPD_INSTALL_FLAG_ALLOW_REINSTALL
the #FwupdClientDownloadFlags, e.g. %FWUPD_CLIENT_DOWNLOAD_FLAG_DISABLE_IPFS
the #GCancellable, or %NULL
the function to run on completion
Installs a new release on a device, downloading the firmware if required.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with fwupd_client_set_main_context().
A #FwupdDevice
A #FwupdRelease
the #FwupdInstallFlags, e.g. %FWUPD_INSTALL_FLAG_ALLOW_REINSTALL
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_install_release_async().
the #GAsyncResult
Checks whether object
has a [floating][floating-ref] reference.
Modifies a daemon config option. The daemon will only respond to this request with proper permissions
key, e.g. DisabledPlugins
value, e.g. *
the #GCancellable, or %NULL
Modifies a daemon config option. The daemon will only respond to this request with proper permissions
key, e.g. DisabledPlugins
value, e.g. *
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_modify_config_async().
the #GAsyncResult
Modifies a device in a specific way. Not all properties on the #FwupdDevice
are settable by the client, and some may have other restrictions on value
.
NOTE: User authentication may be required to complete this action.
the device ID
the key, e.g. Flags
the key, e.g. reported
the #GCancellable, or %NULL
Modifies a device in a specific way. Not all properties on the #FwupdDevice
are settable by the client, and some may have other restrictions on value
.
the device ID
the key, e.g. Flags
the key, e.g. reported
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_modify_device_async().
the #GAsyncResult
Modifies a system remote in a specific way.
NOTE: User authentication may be required to complete this action.
the remote ID, e.g. lvfs-testing
the key, e.g. Enabled
the key, e.g. true
the #GCancellable, or %NULL
Modifies a system remote in a specific way.
the remote ID, e.g. lvfs-testing
the key, e.g. Enabled
the key, e.g. true
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_modify_remote_async().
the #GAsyncResult
Emits a "notify" signal for the property property_name
on object
.
When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.
Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.
the name of a property installed on the class of object
.
Emits a "notify" signal for the property specified by pspec
on object
.
This function omits the property name lookup, hence it is faster than g_object_notify().
One way to avoid using g_object_notify() from within the class that registered the properties, and using g_object_notify_by_pspec() instead, is to store the GParamSpec used with g_object_class_install_property() inside a static array, e.g.:
enum
{
PROP_0,
PROP_FOO,
PROP_LAST
};
static GParamSpec *properties[PROP_LAST];
static void
my_object_class_init (MyObjectClass *klass)
{
properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
0, 100,
50,
G_PARAM_READWRITE);
g_object_class_install_property (gobject_class,
PROP_FOO,
properties[PROP_FOO]);
}
and then notify a change on the "foo" property with:
g_object_notify_by_pspec (self, properties[PROP_FOO]);
the #GParamSpec of a property installed on the class of object
.
Increase the reference count of object,
and possibly remove the
[floating][floating-ref] reference, if object
has a floating reference.
In other words, if the object is floating, then this call "assumes ownership" of the floating reference, converting it to a normal reference by clearing the floating flag while leaving the reference count unchanged. If the object is not floating, then this call adds a new normal reference increasing the reference count by one.
Since GLib 2.56, the type of object
will be propagated to the return type
under the same conditions as for g_object_ref().
Refreshes a remote by downloading new metadata.
A #FwupdRemote
A #GCancellable, or %NULL
Refreshes a remote by downloading new metadata.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with fwupd_client_set_main_context().
A #FwupdRemote
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_refresh_remote_async().
the #GAsyncResult
Releases all references to other objects. This can be used to break reference cycles.
This function should only be called from object system implementations.
Signs the data using the client self-signed certificate.
A string to sign, typically a JSON blob
#FwupdSelfSignFlags, e.g. %FWUPD_SELF_SIGN_FLAG_ADD_TIMESTAMP
the #GCancellable, or %NULL
Signs the data using the client self-signed certificate.
You must have called fwupd_client_connect_async() on self
before using
this method.
A string to sign, typically a JSON blob
#FwupdSelfSignFlags, e.g. %FWUPD_SELF_SIGN_FLAG_ADD_TIMESTAMP
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_self_sign_async().
the #GAsyncResult
Sets the list of approved firmware.
Array of checksums
the #GCancellable, or %NULL
Sets the list of approved firmware.
firmware checksums
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_set_approved_firmware_async().
the #GAsyncResult
Sets the list of approved firmware.
Array of checksums
the #GCancellable, or %NULL
Sets the list of blocked firmware.
firmware checksums
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_set_blocked_firmware_async().
the #GAsyncResult
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
If the object already had an association with that name, the old association will be destroyed.
Internally, the key
is converted to a #GQuark using g_quark_from_string().
This means a copy of key
is kept permanently (even after object
has been
finalized) — so it is recommended to only use a small, bounded set of values
for key
in your program, to avoid the #GQuark storage growing unbounded.
name of the key
data to associate with that key
Sets the features the client supports. This allows firmware to depend on specific front-end features, for instance showing the user an image on how to detach the hardware.
Clients can call this none or multiple times.
#FwupdFeatureFlags, e.g. %FWUPD_FEATURE_FLAG_UPDATE_TEXT
the #GCancellable, or %NULL
Sets the features the client supports. This allows firmware to depend on specific front-end features, for instance showing the user an image on how to detach the hardware.
#FwupdFeatureFlags, e.g. %FWUPD_FEATURE_FLAG_UPDATE_TEXT
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_set_feature_flags_async().
the #GAsyncResult
Sets the internal #GMainContext to use for returning progress signals.
#GMainContext or %NULL to use the global default main context
Sets a property on an object.
the name of the property to set
the value
Manually sets the user agent that is used for downloading. The user agent should contain the runtime version of fwupd somewhere in the provided string.
the user agent ID, e.g. gnome-software/3.34.1
Builds a user-agent to use for the download.
Supplying harmless details to the server means it knows more about each client. This allows the web service to respond in a different way, for instance sending a different metadata file for old versions of fwupd, or returning an error for Solaris machines.
Before freaking out about theoretical privacy implications, much more data than this is sent to each and every website you visit.
client program name, e.g. "gnome-software"
client program version, e.g. "3.28.1"
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
name of the key
This function gets back user data pointers stored via
g_object_set_qdata() and removes the data
from object
without invoking its destroy() function (if any was
set).
Usually, calling this function is only required to update
user data pointers with a destroy notifier, for example:
void
object_add_to_user_list (GObject *object,
const gchar *new_string)
{
// the quark, naming the object data
GQuark quark_string_list = g_quark_from_static_string ("my-string-list");
// retrieve the old string list
GList *list = g_object_steal_qdata (object, quark_string_list);
// prepend new string
list = g_list_prepend (list, g_strdup (new_string));
// this changed 'list', so we need to set it again
g_object_set_qdata_full (object, quark_string_list, list, free_string_list);
}
static void
free_string_list (gpointer data)
{
GList *node, *list = data;
for (node = list; node; node = node->next)
g_free (node->data);
g_list_free (list);
}
Using g_object_get_qdata() in the above example, instead of g_object_steal_qdata() would have left the destroy function set, and thus the partial string list would have been freed upon g_object_set_qdata_full().
A #GQuark, naming the user data pointer
Reverts the effect of a previous call to
g_object_freeze_notify(). The freeze count is decreased on object
and when it reaches zero, queued "notify" signals are emitted.
Duplicate notifications for each property are squashed so that at most one #GObject::notify signal is emitted for each property, in the reverse order in which they have been queued.
It is an error to call this function when the freeze count is zero.
Unlocks a specific device so firmware can be read or wrote.
the device ID
the #GCancellable, or %NULL
Unlocks a specific device so firmware can be read or wrote.
the device ID
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_unlock_async().
the #GAsyncResult
Decreases the reference count of object
. When its reference count
drops to 0, the object is finalized (i.e. its memory is freed).
If the pointer to the #GObject may be reused in future (for example, if it is an instance variable of another object), it is recommended to clear the pointer to %NULL rather than retain a dangling pointer to a potentially invalid #GObject instance. Use g_clear_object() for this.
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.
The remote_id
allows the firmware to be tagged so that the remote can be
matched when the firmware is downloaded.
the remote ID, e.g. lvfs-testing
the XML metadata filename
the GPG signature file
the #GCancellable, or %NULL
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.
The remote_id
allows the firmware to be tagged so that the remote can be
matched when the firmware is downloaded.
remote ID, e.g. lvfs-testing
XML metadata data
signature data
#GCancellable, or %NULL
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.
The remote_id
allows the firmware to be tagged so that the remote can be
matched when the firmware is downloaded.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with fwupd_client_set_main_context().
remote ID, e.g. lvfs-testing
XML metadata data
signature data
#GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_update_metadata_bytes_async().
the #GAsyncResult
Uploads data to a remote server. The fwupd_client_set_user_agent() function should be called before this method is used.
the remote URL
payload string
signature string
#FwupdClientDownloadFlags, e.g. %FWUPD_CLIENT_DOWNLOAD_FLAG_NONE
the #GCancellable, or %NULL
Uploads data to a remote server. The fwupd_client_set_user_agent() function should be called before this method is used.
You must have called fwupd_client_connect_async() on self
before using
this method.
NOTE: This method is thread-safe, but progress signals will be emitted in the global default main context, if not explicitly set with fwupd_client_set_main_context().
the remote URL
payload string
signature string
#FwupdClientDownloadFlags, e.g. %FWUPD_CLIENT_DOWNLOAD_FLAG_NONE
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_upload_bytes_async().
the #GAsyncResult
Verify a specific device.
the device ID
the #GCancellable, or %NULL
Verify a specific device.
the device ID
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_verify_async().
the #GAsyncResult
Update the verification record for a specific device.
the device ID
the #GCancellable, or %NULL
Update the verification record for a specific device.
the device ID
the #GCancellable, or %NULL
the function to run on completion
Gets the result of fwupd_client_verify_update_async().
the #GAsyncResult
Emits a "notify" signal for the property property_name
on object
.
When possible, eg. when signaling a property change from within the class that registered the property, you should use g_object_notify_by_pspec() instead.
Note that emission of the notify signal may be blocked with g_object_freeze_notify(). In this case, the signal emissions are queued and will be emitted (in reverse order) when g_object_thaw_notify() is called.
This function essentially limits the life time of the closure
to
the life time of the object. That is, when the object is finalized,
the closure
is invalidated by calling g_closure_invalidate() on
it, in order to prevent invocations of the closure with a finalized
(nonexisting) object. Also, g_object_ref() and g_object_unref() are
added as marshal guards to the closure,
to ensure that an extra
reference count is held on object
during invocation of the
closure
. Usually, this function will be called on closures that
use this object
as closure data.
#GClosure to watch
Find the #GParamSpec with the given name for an
interface. Generally, the interface vtable passed in as g_iface
will be the default vtable from g_type_default_interface_ref(), or,
if you know the interface has already been loaded,
g_type_default_interface_peek().
any interface vtable for the interface, or the default vtable for the interface
name of a property to look up.
Add a property to an interface; this is only useful for interfaces that are added to GObject-derived types. Adding a property to an interface forces all objects classes with that interface to have a compatible property. The compatible property could be a newly created #GParamSpec, but normally g_object_class_override_property() will be used so that the object class only needs to provide an implementation and inherits the property description, default value, bounds, and so forth from the interface property.
This function is meant to be called from the interface's default
vtable initialization function (the class_init
member of
#GTypeInfo.) It must not be called after after class_init
has
been called for any object types implementing this interface.
If pspec
is a floating reference, it will be consumed.
any interface vtable for the interface, or the default vtable for the interface.
the #GParamSpec for the new property
Lists the properties of an interface.Generally, the interface
vtable passed in as g_iface
will be the default vtable from
g_type_default_interface_ref(), or, if you know the interface has
already been loaded, g_type_default_interface_peek().
any interface vtable for the interface, or the default vtable for the interface
Creates a new instance of a #GObject subtype and sets its properties.
Construction parameters (see %G_PARAM_CONSTRUCT, %G_PARAM_CONSTRUCT_ONLY) which are not explicitly specified are set to their default values.
the type id of the #GObject subtype to instantiate
an array of #GParameter
Creates a new client.