libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_SOURCE_APPLYDELTARPM_H 00013 #define ZYPP_SOURCE_APPLYDELTARPM_H 00014 00015 #include <iosfwd> 00016 #include <string> 00017 00018 #include "zypp/base/Function.h" 00019 #include "zypp/Pathname.h" 00020 00022 namespace zypp 00023 { 00024 00026 00027 namespace applydeltarpm 00028 { 00029 00031 bool haveApplydeltarpm(); 00032 00040 bool check( const std::string & sequenceinfo_r, bool quick_r = false ); 00041 00045 bool check( const Pathname & delta_r, bool quick_r = false ); 00046 00048 inline bool quickcheck( const std::string & sequenceinfo_r ) 00049 { return check( sequenceinfo_r, true ); } 00050 00052 inline bool quickcheck( const Pathname & delta_r ) 00053 { return check( delta_r, true ); } 00055 00061 typedef function<void( unsigned )> Progress; 00062 00066 bool provide( const Pathname & delta_r, const Pathname & new_r, 00067 const Progress & report_r = Progress() ); 00068 00072 bool provide( const Pathname & old_r, const Pathname & delta_r, 00073 const Pathname & new_r, 00074 const Progress & report_r = Progress() ); 00076 00078 } // namespace applydeltarpm 00081 } // namespace zypp 00083 #endif // ZYPP_SOURCE_APPLYDELTARPM_H