libzypp
17.24.2
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
22
namespace
zypp
23
{
24
26
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
zypp::applydeltarpm::haveApplydeltarpm
bool haveApplydeltarpm()
Test whether an execuatble applydeltarpm program is available.
Definition:
Applydeltarpm.cc:69
Pathname.h
zypp::applydeltarpm::quickcheck
bool quickcheck(const std::string &sequenceinfo_r)
Quick via check sequence info.
Definition:
Applydeltarpm.h:48
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition:
CodePitfalls.doc:2
zypp::applydeltarpm::check
bool check(const std::string &sequenceinfo_r, bool quick_r)
Check via sequence info.
Definition:
Applydeltarpm.cc:93
zypp::applydeltarpm::Progress
function< void(unsigned)> Progress
progress reporting
Definition:
Applydeltarpm.h:61
zypp::applydeltarpm::provide
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.
Definition:
Applydeltarpm.cc:133
Function.h
zypp::filesystem::Pathname
Pathname.
Definition:
Pathname.h:45
zypp
repo
Applydeltarpm.h
Generated by
1.8.18