]>
git.saurik.com Git - apt.git/blob - apt-pkg/edsp/edspwriter.h
c5eed788fe0ac6aaa77a944af17da8885681922b
1 // -*- mode: cpp; mode: fold -*-
3 /* ######################################################################
4 Set of methods to help writing and reading everything needed for EDSP
5 ##################################################################### */
7 #ifndef PKGLIB_EDSPWRITER_H
8 #define PKGLIB_EDSPWRITER_H
10 #include <apt-pkg/depcache.h>
14 class edspWriter
/*{{{*/
17 bool static WriteRequest(pkgDepCache
&Cache
, FILE* output
);
18 bool static WriteScenario(pkgDepCache
&Cache
, FILE* output
);
19 bool static ReadResponse(FILE* input
, pkgDepCache
&Cache
);
21 // ReadScenario is provided by the listparser infrastructure
22 bool static ReadRequest(FILE* input
, std::list
<std::string
> &install
,
23 std::list
<std::string
> &remove
);
24 bool static ApplyRequest(std::list
<std::string
> const &install
,
25 std::list
<std::string
> const &remove
,
27 bool static WriteSolution(pkgDepCache
&Cache
, FILE* output
);
28 bool static WriteError(std::string
const &message
, FILE* output
);