]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/edsp/edspwriter.h
add the methods we will need to write to make working with EDSP possible
[apt.git] / apt-pkg / edsp / edspwriter.h
index 2b417956ed460c398c2034b1593c13d46bddb6fc..c5eed788fe0ac6aaa77a944af17da8885681922b 100644 (file)
@@ -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