1 // -*- mode: cpp; mode: fold -*-
3 /* ######################################################################
4 Set of methods to help writing and reading everything needed for EDSP
5 ##################################################################### */
10 #include <apt-pkg/depcache.h>
16 bool static ReadLine(int const input
, std::string
&line
);
17 bool static StringToBool(char const *answer
, bool const defValue
);
20 bool static WriteRequest(pkgDepCache
&Cache
, FILE* output
,
21 bool const upgrade
= false,
22 bool const distUpgrade
= false,
23 bool const autoRemove
= false);
24 bool static WriteScenario(pkgDepCache
&Cache
, FILE* output
);
25 bool static ReadResponse(int const input
, pkgDepCache
&Cache
);
27 // ReadScenario is provided by the listparser infrastructure
28 bool static ReadRequest(int const input
, std::list
<std::string
> &install
,
29 std::list
<std::string
> &remove
, bool &upgrade
,
30 bool &distUpgrade
, bool &autoRemove
);
31 bool static ApplyRequest(std::list
<std::string
> const &install
,
32 std::list
<std::string
> const &remove
,
34 bool static WriteSolution(pkgDepCache
&Cache
, FILE* output
);
35 bool static WriteError(std::string
const &message
, FILE* output
);