Method
FwupdClientdownload_bytes
Declaration [src]
GBytes*
fwupd_client_download_bytes (
FwupdClient* self,
const gchar* url,
FwupdClientDownloadFlags flags,
GCancellable* cancellable,
GError** error
)
Description [src]
Downloads data from a remote server. The fwupd_client_set_user_agent() function
should be called before this method is used.
| Available since: | 1.4.5 |
Parameters
url |
const gchar* |
The remote URL. |
|
| The data is owned by the caller of the function. | |
| The value is a NUL terminated UTF-8 string. | |
flags |
FwupdClientDownloadFlags |
Download flags, e.g. |
|
cancellable |
GCancellable |
Optional |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
error |
GError ** |
The return location for a GError*, or NULL. |
Return value
| Returns: | GBytes |
Downloaded data, or |
|
| The caller of the method takes ownership of the data, and is responsible for freeing it. |