]> git.saurik.com Git - apt.git/blob - apt-pkg/edsp.h
04d8c255f2c21ef76f3ca06bd8293e431325660a
[apt.git] / apt-pkg / edsp.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 /* ######################################################################
4 Set of methods to help writing and reading everything needed for EDSP
5 ##################################################################### */
6 /*}}}*/
7 #ifndef PKGLIB_EDSP_H
8 #define PKGLIB_EDSP_H
9
10 #include <apt-pkg/depcache.h>
11
12 #include <string>
13
14 class EDSP /*{{{*/
15 {
16 public:
17 bool static WriteRequest(pkgDepCache &Cache, FILE* output,
18 bool const Upgrade = false,
19 bool const DistUpgrade = false,
20 bool const AutoRemove = false);
21 bool static WriteScenario(pkgDepCache &Cache, FILE* output);
22 bool static ReadResponse(FILE* input, pkgDepCache &Cache);
23
24 // ReadScenario is provided by the listparser infrastructure
25 bool static ReadRequest(FILE* input, std::list<std::string> &install,
26 std::list<std::string> &remove);
27 bool static ApplyRequest(std::list<std::string> const &install,
28 std::list<std::string> const &remove,
29 pkgDepCache &Cache);
30 bool static WriteSolution(pkgDepCache &Cache, FILE* output);
31 bool static WriteError(std::string const &message, FILE* output);
32
33 };
34 /*}}}*/
35 #endif