#include <stdio.h>
/*}}}*/
-// edspWriter::WriteUniverse - to the given file descriptor /*{{{*/
+// edspWriter::WriteScenario - to the given file descriptor /*{{{*/
bool edspWriter::WriteScenario(pkgDepCache &Cache, FILE* output)
{
// we could use pkgCache::DepType and ::Priority, but these would be lokalized stringsā¦
return true;
}
/*}}}*/
+bool edspWriter::ReadResponse(FILE* input, pkgDepCache &Cache) { return false; }
+
+bool edspWriter::ReadRequest(FILE* input, std::list<std::string> &install,
+ std::list<std::string> &remove)
+{ return false; }
+bool edspWriter::ApplyRequest(std::list<std::string> const &install,
+ std::list<std::string> const &remove,
+ pkgDepCache &Cache)
+{ return false; }
// edspWriter::WriteSolution - to the given file descriptor /*{{{*/
bool edspWriter::WriteSolution(pkgDepCache &Cache, FILE* output)
{
return true;
}
/*}}}*/
+bool edspWriter::WriteError(std::string const &message, FILE* output) { return false; }
#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