apt
3.0.3
commandline package manager
apt-pkg
upgrade.h
1
// -*- mode: cpp; mode: fold -*-
2
// Description /*{{{*/
3
/* ######################################################################
4
5
Upgrade - Upgrade/DistUpgrade related code
6
7
##################################################################### */
8
/*}}}*/
9
10
#ifndef PKGLIB_UPGRADE_H
11
#define PKGLIB_UPGRADE_H
12
13
#include <apt-pkg/macros.h>
14
#include <cstddef>
15
16
class
pkgDepCache
;
17
class
OpProgress
;
18
19
namespace
APT {
20
namespace
Upgrade {
21
// FIXME: make this "enum class UpgradeMode {" once we enable c++11
22
enum
UpgradeMode {
23
FORBID_REMOVE_PACKAGES = 1,
24
FORBID_INSTALL_NEW_PACKAGES = 2,
25
ALLOW_EVERYTHING = 0
26
};
27
APT_PUBLIC
bool
Upgrade(
pkgDepCache
&Cache,
int
UpgradeMode,
OpProgress
*
const
Progress = NULL);
28
}
29
}
30
31
APT_PUBLIC
bool
pkgMinimizeUpgrade(
pkgDepCache
&Cache);
32
#endif
OpProgress
Definition
progress.h:30
pkgDepCache
Definition
depcache.h:63
Generated by
1.9.8