Librepo library
1.12.1
C library for downloading linux repository metadata and packages
|
27 #include <curl/curl.h>
34 #include "xmlparser.h"
35 #include "downloadtarget.h"
50 #define LR_CURL_VERSION_CHECK(major,minor,patch) \
51 (LIBCURL_VERSION_MAJOR > (major) || \
52 (LIBCURL_VERSION_MAJOR == (major) && LIBCURL_VERSION_MINOR > (minor)) || \
53 (LIBCURL_VERSION_MAJOR == (major) && LIBCURL_VERSION_MINOR == (minor) && \
54 LIBCURL_VERSION_PATCH >= (patch)))
154 GError **err G_GNUC_UNUSED) G_GNUC_UNUSED;
205 const gchar *filename,
217 lr_checksum_from_zck_hash(zck_hash zck_checksum_type);
241 lr_zck_init_read_base(
const char *checksum,
LrChecksumType checksum_type,
242 gint64 zck_header_size,
int fd, GError **err);
255 lr_zck_valid_header_base(
const char *checksum,
LrChecksumType checksum_type,
256 gint64 zck_header_size,
int fd, GError **err);
267 lr_zck_init_read(LrDownloadTarget *target,
char *filename,
int fd, GError **err);
278 lr_zck_valid_header(LrDownloadTarget *target,
char *filename,
int fd, GError **err);
292 lr_get_recursive_files(
char *path,
char *extension, GError **err);
gchar ** lr_strv_dup(gchar **array)
void lr_log_librepo_summary(void)
int lr_remove_dir(const char *path)
gboolean lr_is_local_path(const gchar *path)
gboolean lr_best_checksum(GSList *list, LrChecksumType *type, gchar **value)
void * lr_realloc(void *ptr, size_t len)
char * lr_prepend_url_protocol(const char *path)
void lr_global_init(void)
char * lr_gettmpdir(void)
gboolean lr_key_file_save_to_file(GKeyFile *key_file, const gchar *filename, GError **error)
int lr_xml_parser_warning_logger(LrXmlParserWarningType type G_GNUC_UNUSED, char *msg, void *cbdata, GError **err G_GNUC_UNUSED) G_GNUC_UNUSED
gchar * lr_string_chunk_insert(GStringChunk *chunk, const gchar *string)
void * lr_malloc(size_t len)
void lr_out_of_memory(void)
int lr_copy_content(int source, int dest)
void * lr_malloc0(size_t len)
gchar * lr_url_without_path(const char *url)
char * lr_pathconcat(const char *str,...) G_GNUC_NULL_TERMINATED