diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-03-31 14:56:10 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-03-31 14:56:10 +0200 |
commit | 29099cb6855af2e465d26e888160e4f97bda4f0b (patch) | |
tree | 116d2ee9aa48c0feb7adb95ddddd4c085dacb12b /apt-pkg/edsp/edspwriter.h | |
parent | 85bcab87a3c6f8d4b1369a5a4bd5a73a28f41dce (diff) |
add the methods we will need to write to make working with EDSP possible
Diffstat (limited to 'apt-pkg/edsp/edspwriter.h')
-rw-r--r-- | apt-pkg/edsp/edspwriter.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apt-pkg/edsp/edspwriter.h b/apt-pkg/edsp/edspwriter.h index 2b417956e..c5eed788f 100644 --- a/apt-pkg/edsp/edspwriter.h +++ b/apt-pkg/edsp/edspwriter.h @@ -9,12 +9,24 @@ #include <apt-pkg/depcache.h> +#include <string> + class edspWriter /*{{{*/ { public: - bool static WriteScenario(pkgDepCache &Cache, FILE* output); bool static WriteRequest(pkgDepCache &Cache, FILE* output); + bool static WriteScenario(pkgDepCache &Cache, FILE* output); + bool static ReadResponse(FILE* input, pkgDepCache &Cache); + + // ReadScenario is provided by the listparser infrastructure + bool static ReadRequest(FILE* input, std::list<std::string> &install, + std::list<std::string> &remove); + bool static ApplyRequest(std::list<std::string> const &install, + std::list<std::string> const &remove, + pkgDepCache &Cache); bool static WriteSolution(pkgDepCache &Cache, FILE* output); + bool static WriteError(std::string const &message, FILE* output); + }; /*}}}*/ #endif |