X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/41d39345bdc31cb9b8be057cd678aa2890830437..5f17b19f8f99eb6f80a10846d5891f53c16178dc:/apt-private/private-cmndline.h?ds=inline diff --git a/apt-private/private-cmndline.h b/apt-private/private-cmndline.h index 6a6885a33..6235ef9f5 100644 --- a/apt-private/private-cmndline.h +++ b/apt-private/private-cmndline.h @@ -22,19 +22,16 @@ enum class APT_CMD { APT_MARK, APT_SORTPKG, }; - struct aptDispatchWithHelp { const char *Match; bool (*Handler)(CommandLine &); const char *Help; }; -std::vector GetCommands(); -bool ShowHelp(CommandLine &CmdL, aptDispatchWithHelp const * Cmds); -APT_PUBLIC void ShowHelpListCommands(aptDispatchWithHelp const * Cmds); APT_PUBLIC std::vector ParseCommandLine(CommandLine &CmdL, APT_CMD const Binary, - Configuration * const * const Cnf, pkgSystem ** const Sys, int const argc, const char * argv[]); + Configuration * const * const Cnf, pkgSystem ** const Sys, int const argc, const char * argv[], + bool (*ShowHelp)(CommandLine &), std::vector (*GetCommands)(void)); APT_PUBLIC unsigned short DispatchCommandLine(CommandLine &CmdL, std::vector const &Cmds); APT_PUBLIC std::vector getCommandArgs(APT_CMD const Program, char const * const Cmd);