|
Librepo library 1.22.1
C library for downloading linux repository metadata and packages
|
#include <package_downloader.h>
Data Fields | |
| LrHandle * | handle |
| char * | relative_url |
| char * | dest |
| char * | base_url |
| LrChecksumType | checksum_type |
| char * | checksum |
| gint64 | expectedsize |
| gboolean | resume |
| LrProgressCb | progresscb |
| void * | cbdata |
| LrEndCb | endcb |
| LrMirrorFailureCb | mirrorfailurecb |
| gint64 | byterangestart |
| gint64 | byterangeend |
| char * | local_path |
| char * | err |
| GStringChunk * | chunk |
LrPackageTarget structure
Definition at line 77 of file package_downloader.h.
| char* base_url |
Base URL for this target
Definition at line 88 of file package_downloader.h.
| gint64 byterangeend |
Download only specified range of bytes.
Definition at line 119 of file package_downloader.h.
| gint64 byterangestart |
Download only specified range of bytes.
Definition at line 116 of file package_downloader.h.
| void* cbdata |
Callback data
Definition at line 106 of file package_downloader.h.
| char* checksum |
Expected checksum value
Definition at line 94 of file package_downloader.h.
| LrChecksumType checksum_type |
Checksum type
Definition at line 91 of file package_downloader.h.
| GStringChunk* chunk |
String chunk
Definition at line 130 of file package_downloader.h.
| char* dest |
Destination: filename, dirname or NULL
Definition at line 85 of file package_downloader.h.
| LrEndCb endcb |
Callback called when target transfer is done. (Use status to check if successfully or unsuccessfully)
Definition at line 109 of file package_downloader.h.
| char* err |
Error message or NULL. NULL means no error.
Definition at line 127 of file package_downloader.h.
| gint64 expectedsize |
Expected size of the target
Definition at line 97 of file package_downloader.h.
| LrHandle* handle |
Related handle
Definition at line 79 of file package_downloader.h.
| char* local_path |
Local path
Definition at line 124 of file package_downloader.h.
| LrMirrorFailureCb mirrorfailurecb |
Called when download from a mirror failed.
Definition at line 113 of file package_downloader.h.
| LrProgressCb progresscb |
Progress callback
Definition at line 103 of file package_downloader.h.
| char* relative_url |
Relative part of URL
Definition at line 82 of file package_downloader.h.
| gboolean resume |
Indicate if resume is enabled
Definition at line 100 of file package_downloader.h.