]> git.saurik.com Git - apt.git/blame - apt-pkg/upgrade.h
releasing package apt version 1.0.5
[apt.git] / apt-pkg / upgrade.h
CommitLineData
82e369c4
MV
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
4
5 Upgrade - Upgrade/DistUpgrade releated code
6
7 ##################################################################### */
8 /*}}}*/
9
10#ifndef PKGLIB_UPGRADE_H
11#define PKGLIB_UPGRADE_H
12
453b82a3
DK
13class pkgDepCache;
14
82e369c4
MV
15namespace APT {
16 namespace Upgrade {
17 // FIXME: make this "enum class UpgradeMode {" once we enable c++11
18 enum UpgradeMode {
19 FORBID_REMOVE_PACKAGES = 1,
d3e8fbb3 20 FORBID_INSTALL_NEW_PACKAGES = 2
82e369c4
MV
21 };
22 bool Upgrade(pkgDepCache &Cache, int UpgradeMode);
23 }
24}
25
3f506f68 26// please use APT::Upgrade::Upgrade() instead
82e369c4
MV
27bool pkgDistUpgrade(pkgDepCache &Cache);
28bool pkgAllUpgrade(pkgDepCache &Cache);
29bool pkgMinimizeUpgrade(pkgDepCache &Cache);
30
31
32#endif