update_metadata_bytes_async
Description:
[ Version ( since = "1.5.0" ) ]
public async bool update_metadata_bytes_async (string remote_id, Bytes metadata, Bytes signature, Cancellable? cancellable) throws Error
public async bool update_metadata_bytes_async (string remote_id, Bytes metadata, Bytes signature, Cancellable? cancellable) throws 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.
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 set_main_context.
Parameters:
this |
A Client |
remote_id |
remote ID, e.g. `lvfs-testing` |
metadata |
XML metadata data |
signature |
signature data |
cancellable |
Cancellable, or null |
callback |
the function to run on completion |
callback_data |
the data to pass to |