private-download.h 744 B

123456789101112131415161718192021222324
  1. #ifndef APT_PRIVATE_DOWNLOAD_H
  2. #define APT_PRIVATE_DOWNLOAD_H
  3. #include <apt-pkg/macros.h>
  4. #include <string>
  5. class pkgAcquire;
  6. APT_PUBLIC bool CheckDropPrivsMustBeDisabled(pkgAcquire &Fetcher);
  7. // Check if all files in the fetcher are authenticated
  8. APT_PUBLIC bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser);
  9. // show a authentication warning prompt and return true if the system
  10. // should continue
  11. APT_PUBLIC bool AuthPrompt(std::string const &UntrustedList, bool const PromptUser);
  12. APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure);
  13. APT_PUBLIC bool CheckFreeSpaceBeforeDownload(std::string const &Dir, unsigned long long FetchBytes);
  14. #endif