]> git.saurik.com Git - apt.git/blob - apt-pkg/edsp.h
742d89b43bf259048bb28ade9c4002a7f30e94a0
[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 bool static ReadLine(int const input, std::string &line);
17
18 public:
19 bool static WriteRequest(pkgDepCache &Cache, FILE* output,
20 bool const Upgrade = false,
21 bool const DistUpgrade = false,
22 bool const AutoRemove = false);
23 bool static WriteScenario(pkgDepCache &Cache, FILE* output);
24 bool static ReadResponse(FILE* input, pkgDepCache &Cache);
25
26 // ReadScenario is provided by the listparser infrastructure
27 bool static ReadRequest(int const input, std::list<std::string> &install,
28 std::list<std::string> &remove);
29 bool static ApplyRequest(std::list<std::string> const &install,
30 std::list<std::string> const &remove,
31 pkgDepCache &Cache);
32 bool static WriteSolution(pkgDepCache &Cache, FILE* output);
33 bool static WriteError(std::string const &message, FILE* output);
34
35 };
36 /*}}}*/
37 #endif