]>
git.saurik.com Git - apt.git/blob - apt-pkg/edsp.h
742d89b43bf259048bb28ade9c4002a7f30e94a0
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
);
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
);
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
,
32 bool static WriteSolution(pkgDepCache
&Cache
, FILE* output
);
33 bool static WriteError(std::string
const &message
, FILE* output
);