Librepo library  1.7.13
C library for downloading linux repository metadata and packages
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules
LrPackageTarget Struct Reference

#include <package_downloader.h>

Data Fields

LrHandlehandle
 
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
 

Detailed Description

LrPackageTarget structure

Definition at line 78 of file package_downloader.h.

Field Documentation

char* base_url

Base URL for this target

Definition at line 89 of file package_downloader.h.

gint64 byterangeend

Download only specified range of bytes.

Definition at line 120 of file package_downloader.h.

gint64 byterangestart

Download only specified range of bytes.

Definition at line 117 of file package_downloader.h.

void* cbdata

Callback data

Definition at line 107 of file package_downloader.h.

char* checksum

Expected checksum value

Definition at line 95 of file package_downloader.h.

LrChecksumType checksum_type

Checksum type

Definition at line 92 of file package_downloader.h.

GStringChunk* chunk

String chunk

Definition at line 131 of file package_downloader.h.

char* dest

Destination: filename, dirname or NULL

Definition at line 86 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 110 of file package_downloader.h.

char* err

Error message or NULL. NULL means no error.

Definition at line 128 of file package_downloader.h.

gint64 expectedsize

Expected size of the target

Definition at line 98 of file package_downloader.h.

LrHandle* handle

Related handle

Definition at line 80 of file package_downloader.h.

char* local_path

Local path

Definition at line 125 of file package_downloader.h.

LrMirrorFailureCb mirrorfailurecb

Callen when download from a mirror failed.

Definition at line 114 of file package_downloader.h.

LrProgressCb progresscb

Progress callback

Definition at line 104 of file package_downloader.h.

char* relative_url

Relative part of URL

Definition at line 83 of file package_downloader.h.

gboolean resume

Indicate if resume is enabled

Definition at line 101 of file package_downloader.h.


The documentation for this struct was generated from the following file: