upgrade.h 825 B

123456789101112131415161718192021222324252627282930313233
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. /* ######################################################################
  4. Upgrade - Upgrade/DistUpgrade releated code
  5. ##################################################################### */
  6. /*}}}*/
  7. #ifndef PKGLIB_UPGRADE_H
  8. #define PKGLIB_UPGRADE_H
  9. class pkgDepCache;
  10. namespace APT {
  11. namespace Upgrade {
  12. // FIXME: make this "enum class UpgradeMode {" once we enable c++11
  13. enum UpgradeMode {
  14. FORBID_REMOVE_PACKAGES = 1,
  15. FORBID_INSTALL_NEW_PACKAGES = 2
  16. };
  17. bool Upgrade(pkgDepCache &Cache, int UpgradeMode);
  18. }
  19. }
  20. // please use APT::Upgrade::Upgrade() instead
  21. bool pkgDistUpgrade(pkgDepCache &Cache);
  22. bool pkgAllUpgrade(pkgDepCache &Cache);
  23. bool pkgMinimizeUpgrade(pkgDepCache &Cache);
  24. #endif