summaryrefslogtreecommitdiff
path: root/apt-private/private-download.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2013-10-03 14:45:41 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2013-10-03 14:45:41 +0200
commit866893a619e00966ae6b1549c4bfce92d6c17db1 (patch)
tree6f80b022d9216fa3601ba55b1190778a882932dc /apt-private/private-download.h
parent3c8030a4977536e9d3a1954adc68082ae1c6d5a2 (diff)
put fetch errors in 'source' on our errorstack
refactor the fetching process so that it looks more like the others we have in the hope that we can reuse code in the future. This is a soft interface change as 'source' previously printed errors directly on stderr, while it will now push it onto our usual error stack.
Diffstat (limited to 'apt-private/private-download.h')
-rw-r--r--apt-private/private-download.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-private/private-download.h b/apt-private/private-download.h
new file mode 100644
index 000000000..b8cc8da1e
--- /dev/null
+++ b/apt-private/private-download.h
@@ -0,0 +1,9 @@
+#ifndef APT_PRIVATE_DOWNLOAD_H
+#define APT_PRIVATE_DOWNLOAD_H
+
+#include <apt-pkg/acquire.h>
+
+bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser);
+bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure);
+
+#endif