summaryrefslogtreecommitdiff
path: root/apt-pkg/update.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-10-05 12:22:55 +0200
committerMichael Vogt <mvo@debian.org>2013-10-05 12:22:55 +0200
commitd428d131a29a08fa7c1d95b98b684fb2ebb554c0 (patch)
tree3b87f98fee2553dbe482c976d769653f3e32b0e9 /apt-pkg/update.h
parent82e369c4b93b5b81db7988ab377a3c5bd388268e (diff)
Move ListUpdate/AquireUpdate into update.{cc,h}
This moves the ListUpdate/AquireUpdate out of the "catch-all" algorithm.{cc,h} file into its own update.{cc,h}
Diffstat (limited to 'apt-pkg/update.h')
-rw-r--r--apt-pkg/update.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/apt-pkg/update.h b/apt-pkg/update.h
new file mode 100644
index 000000000..3835644de
--- /dev/null
+++ b/apt-pkg/update.h
@@ -0,0 +1,21 @@
+// -*- mode: cpp; mode: fold -*-
+// Description /*{{{*/
+/* ######################################################################
+
+ Update - ListUpdate releated code
+
+ ##################################################################### */
+ /*}}}*/
+
+#ifndef PKGLIB_UPDATE_H
+#define PKGLIB_UPDATE_H
+
+class pkgAcquireStatus;
+
+
+bool ListUpdate(pkgAcquireStatus &progress, pkgSourceList &List, int PulseInterval=0);
+bool AcquireUpdate(pkgAcquire &Fetcher, int const PulseInterval = 0,
+ bool const RunUpdateScripts = true, bool const ListCleanup = true);
+
+
+#endif