upgrade.h 806 B

12345678910111213141516171819202122232425262728293031
  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. namespace APT {
  10. namespace Upgrade {
  11. // FIXME: make this "enum class UpgradeMode {" once we enable c++11
  12. enum UpgradeMode {
  13. FORBID_REMOVE_PACKAGES = 1,
  14. FORBID_INSTALL_NEW_PACKAGES = 2,
  15. };
  16. bool Upgrade(pkgDepCache &Cache, int UpgradeMode);
  17. }
  18. }
  19. // please use APT::Upgrade::Upgrade() instead
  20. bool pkgDistUpgrade(pkgDepCache &Cache);
  21. bool pkgAllUpgrade(pkgDepCache &Cache);
  22. bool pkgMinimizeUpgrade(pkgDepCache &Cache);
  23. #endif