You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
968 B

  1. #ifndef APT_PRIVATE_CMNDLINE_H
  2. #define APT_PRIVATE_CMNDLINE_H
  3. #include <apt-pkg/cmndline.h>
  4. #include <apt-pkg/macros.h>
  5. #include <vector>
  6. class Configuration;
  7. class pkgSystem;
  8. enum class APT_CMD {
  9. APT,
  10. APT_GET,
  11. APT_CACHE,
  12. APT_CDROM,
  13. APT_CONFIG,
  14. APT_EXTRACTTEMPLATES,
  15. APT_FTPARCHIVE,
  16. APT_HELPER,
  17. APT_INTERNAL_SOLVER,
  18. APT_MARK,
  19. APT_SORTPKG,
  20. };
  21. bool ShowHelp(CommandLine &CmdL, CommandLine::DispatchWithHelp const * Cmds);
  22. std::vector<CommandLine::DispatchWithHelp> GetCommands();
  23. APT_PUBLIC std::vector<CommandLine::DispatchWithHelp> ParseCommandLine(CommandLine &CmdL, APT_CMD const Binary,
  24. Configuration * const * const Cnf, pkgSystem ** const Sys, int const argc, const char * argv[]);
  25. APT_PUBLIC unsigned short DispatchCommandLine(CommandLine &CmdL, std::vector<CommandLine::DispatchWithHelp> const &Cmds);
  26. APT_PUBLIC std::vector<CommandLine::Args> getCommandArgs(APT_CMD const Program, char const * const Cmd);
  27. #endif