summaryrefslogtreecommitdiff
path: root/lib/libalpm/dload.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-09-28 12:06:36 -0500
committerDan McGee <dan@archlinux.org>2011-09-28 13:01:03 -0500
commit9a58d5c6c5a69ebf7a920c357820a59c19d5b641 (patch)
tree1e5b5744e4c32b8e88c9ce4d96eb6bbc72eb4842 /lib/libalpm/dload.h
parent83f99bfb39841b254046f6c8a210b6a91aca22ee (diff)
downloadpacman-9a58d5c6c5a69ebf7a920c357820a59c19d5b641.tar.xz
Initialize cURL library on first use
Rather than always initializing it on any handle creation. There are several frontend operations (search, info, etc.) that never need the download code, so spending time initializing this every single time is a bit silly. This makes it a bit more like the GPGME code init path. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.h')
-rw-r--r--lib/libalpm/dload.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h
index 765c5fdf..c2fd6095 100644
--- a/lib/libalpm/dload.h
+++ b/lib/libalpm/dload.h
@@ -39,6 +39,7 @@ struct dload_payload {
int allow_resume;
int errors_ok;
int unlink_on_fail;
+ CURLcode curlerr; /* last error produced by curl */
};
void _alpm_dload_payload_free(struct dload_payload *payload);