From f74d99c6a78caafdc6e32d8cb135683b7154795c Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 28 May 2016 15:40:59 +0200 Subject: eipp: provide the internal planer as an external one Testing the current implementation can benefit from being able to be feed an EIPP request and produce a fully compliant response. It is also a great test for EIPP in general. --- apt-pkg/packagemanager.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apt-pkg/packagemanager.h') diff --git a/apt-pkg/packagemanager.h b/apt-pkg/packagemanager.h index 83d26115f..145fe40a8 100644 --- a/apt-pkg/packagemanager.h +++ b/apt-pkg/packagemanager.h @@ -24,6 +24,7 @@ #include #include +#include #include #include @@ -43,13 +44,14 @@ class pkgDepCache; class pkgSourceList; class pkgOrderList; class pkgRecords; +class OpProgress; +class pkgPackageManager; namespace APT { namespace Progress { class PackageManager; } } - class pkgPackageManager : protected pkgCache::Namespace { public: @@ -115,6 +117,11 @@ class pkgPackageManager : protected pkgCache::Namespace // compat APT_DEPRECATED_MSG("Use APT::Progress::PackageManager subclass instead of fd") OrderResult DoInstall(int statusFd=-1); + friend bool EIPP::OrderInstall(char const * const planer, pkgPackageManager * const PM, + unsigned int const version, OpProgress * const Progress); + friend bool EIPP::ReadResponse(int const input, pkgPackageManager * const PM, + OpProgress * const Progress); + // stuff that needs to be done before the fork() of a library that // uses apt OrderResult DoInstallPreFork() { -- cgit v1.2.3