]> git.saurik.com Git - apt.git/blame - apt-private/private-cmndline.h
Merge commit 'e2073b0276226b625897ef475f225bf8f508719e' as 'triehash'
[apt.git] / apt-private / private-cmndline.h
CommitLineData
b9179170
MV
1#ifndef APT_PRIVATE_CMNDLINE_H
2#define APT_PRIVATE_CMNDLINE_H
3
4#include <apt-pkg/cmndline.h>
63ff4208 5#include <apt-pkg/macros.h>
b9179170
MV
6
7#include <vector>
8
ad7e0941
DK
9class Configuration;
10class pkgSystem;
11
011188e3
DK
12enum class APT_CMD {
13 APT,
14 APT_GET,
15 APT_CACHE,
16 APT_CDROM,
17 APT_CONFIG,
18 APT_EXTRACTTEMPLATES,
19 APT_FTPARCHIVE,
20 APT_HELPER,
21 APT_INTERNAL_SOLVER,
22 APT_MARK,
23 APT_SORTPKG,
385d9f2f 24 APT_DUMP_SOLVER,
8e99b22c 25 APT_INTERNAL_PLANNER,
011188e3 26};
6079b276
DK
27struct aptDispatchWithHelp
28{
29 const char *Match;
30 bool (*Handler)(CommandLine &);
31 const char *Help;
32};
011188e3 33
6079b276 34APT_PUBLIC std::vector<CommandLine::Dispatch> ParseCommandLine(CommandLine &CmdL, APT_CMD const Binary,
90986d4d
DK
35 Configuration * const * const Cnf, pkgSystem ** const Sys, int const argc, const char * argv[],
36 bool (*ShowHelp)(CommandLine &), std::vector<aptDispatchWithHelp> (*GetCommands)(void));
6079b276 37APT_PUBLIC unsigned short DispatchCommandLine(CommandLine &CmdL, std::vector<CommandLine::Dispatch> const &Cmds);
011188e3
DK
38
39APT_PUBLIC std::vector<CommandLine::Args> getCommandArgs(APT_CMD const Program, char const * const Cmd);
b9179170
MV
40
41#endif