![]() |
XBPS Library API
0.19
The X Binary Package System
|
Structure to be passed to the fetch function callback. More...
Collaboration diagram for xbps_fetch_cb_data:Data Fields | |
| bool | cb_end |
| bool | cb_start |
| bool | cb_update |
| off_t | file_dloaded |
| const char * | file_name |
| off_t | file_offset |
| off_t | file_size |
| struct xbps_handle * | xhp |
This structure is passed as argument to the fetch progress function callback and its members will be updated when there's any progress. All members marked as read-only in this struct are set internally by xbps_unpack_binary_pkg() and shouldn't be modified in the passed function callback.
Definition at line 366 of file xbps_api.h.
| cb_end |
If true the function callback should be prepated to end the transfer progress.
Definition at line 417 of file xbps_api.h.
| cb_start |
If true the function callback should be prepared to start the transfer progress.
Definition at line 403 of file xbps_api.h.
| cb_update |
If true the function callback should be prepared to update the transfer progress.
Definition at line 410 of file xbps_api.h.
| file_dloaded |
Bytes downloaded for the file being fetched.
Definition at line 390 of file xbps_api.h.
| file_name |
File name being fetched.
Definition at line 396 of file xbps_api.h.
| file_offset |
Current offset for the filename being fetched.
Definition at line 384 of file xbps_api.h.
| file_size |
Filename size for the file to be fetched.
Definition at line 378 of file xbps_api.h.
| xhp |
Pointer to our struct xbps_handle passed to xbps_init().
Definition at line 372 of file xbps_api.h.
1.8.2