2014-08-22 14:40:49 +04:00
|
|
|
// Part of ZBackup. Licensed under GNU GPLv2 or later
|
|
|
|
|
2014-09-30 14:36:28 +04:00
|
|
|
#ifndef BACKUP_EXCHANGER_HH_INCLUDED__
|
|
|
|
#define BACKUP_EXCHANGER_HH_INCLUDED__
|
2014-08-22 14:40:49 +04:00
|
|
|
|
2014-08-27 12:12:47 +04:00
|
|
|
#include <string>
|
2014-09-30 14:36:28 +04:00
|
|
|
#include <vector>
|
2014-10-02 22:13:15 +04:00
|
|
|
#include "sptr.hh"
|
|
|
|
#include "tmp_mgr.hh"
|
|
|
|
|
|
|
|
namespace BackupExchanger {
|
2014-08-27 12:12:47 +04:00
|
|
|
|
|
|
|
using std::string;
|
2014-09-30 14:36:28 +04:00
|
|
|
using std::vector;
|
2014-10-02 22:13:15 +04:00
|
|
|
using std::pair;
|
2014-08-22 14:40:49 +04:00
|
|
|
|
|
|
|
enum {
|
|
|
|
backups,
|
|
|
|
bundles,
|
|
|
|
index,
|
|
|
|
Flags
|
|
|
|
};
|
|
|
|
|
2014-09-30 14:36:28 +04:00
|
|
|
/// Recreate source directory structure in destination
|
2014-10-02 22:13:15 +04:00
|
|
|
vector< string > recreateDirectories( string const & src, string const & dst, string const & relativePath = std::string() );
|
|
|
|
typedef pair< sptr< TemporaryFile >, string > PendingExchangeRename;
|
2014-08-22 14:40:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|