BSB Developer Docs
Loading...
Searching...
No Matches
fetch_common.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <stdint.h>
8#include <stddef.h>
9#include <stdbool.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
26
35
36#ifdef __cplusplus
37}
38#endif
FetchStatus
Enumeration of possible Fetch completion statuses.
Definition fetch_common.h:30
@ FetchStatusAborted
Operation was aborted (cancelled)
Definition fetch_common.h:33
@ FetchStatusError
Operation failed due to an error.
Definition fetch_common.h:32
@ FetchStatusOk
Operation completed successfully.
Definition fetch_common.h:31
Fetch download progress structure.
Definition fetch_common.h:20
bool has_total_download_size
Whether the total download size is known.
Definition fetch_common.h:24
uint32_t speed_bytes_per_sec
Donwload speed, in bytes per second.
Definition fetch_common.h:23
size_t received_download_size
Number of bytes downloaded so far.
Definition fetch_common.h:22
size_t total_download_size
Total file size, in bytes.
Definition fetch_common.h:21