Method
FwupdClientupload_bytes
Declaration [src]
GBytes*
fwupd_client_upload_bytes (
FwupdClient* self,
const gchar* url,
const gchar* payload,
const gchar* signature,
FwupdClientUploadFlags flags,
GCancellable* cancellable,
GError** error
)
Description [src]
Uploads data to 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. | |
payload |
const gchar* |
Payload string. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
signature |
const gchar* |
Signature string. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
flags |
FwupdClientUploadFlags |
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 |
Response data, or |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. |