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