libzypp 17.31.23
Applydeltarpm.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_SOURCE_APPLYDELTARPM_H
13#define ZYPP_SOURCE_APPLYDELTARPM_H
14
15#include <iosfwd>
16#include <string>
17
18#include <zypp/base/Function.h>
19#include <zypp/Pathname.h>
20
22namespace zypp
23{
24
27 namespace applydeltarpm
28 {
29
31 bool haveApplydeltarpm();
32
40 bool check( const std::string & sequenceinfo_r, bool quick_r = false );
41
45 bool check( const Pathname & delta_r, bool quick_r = false );
46
48 inline bool quickcheck( const std::string & sequenceinfo_r )
49 { return check( sequenceinfo_r, true ); }
50
52 inline bool quickcheck( const Pathname & delta_r )
53 { return check( delta_r, true ); }
55
61 typedef function<void( unsigned )> Progress;
62
66 bool provide( const Pathname & delta_r, const Pathname & new_r,
67 const Progress & report_r = Progress() );
68
72 bool provide( const Pathname & old_r, const Pathname & delta_r,
73 const Pathname & new_r,
74 const Progress & report_r = Progress() );
76
78 } // namespace applydeltarpm
81} // namespace zypp
83#endif // ZYPP_SOURCE_APPLYDELTARPM_H
bool haveApplydeltarpm()
Test whether an execuatble applydeltarpm program is available.
bool provide(const Pathname &delta_r, const Pathname &new_r, const Progress &report_r)
Apply a binary delta to on-disk data to re-create a new rpm.
bool quickcheck(const std::string &sequenceinfo_r)
Quick via check sequence info.
Definition: Applydeltarpm.h:48
bool check(const std::string &sequenceinfo_r, bool quick_r)
Check via sequence info.
function< void(unsigned)> Progress
progress reporting
Definition: Applydeltarpm.h:61
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2