zbackup/backup_exchanger.hh

30 lines
606 B
C++
Raw Normal View History

// Part of ZBackup. Licensed under GNU GPLv2 or later
#ifndef BACKUP_EXCHANGER_HH_INCLUDED__
#define BACKUP_EXCHANGER_HH_INCLUDED__
#include <string>
#include <vector>
2014-10-02 22:13:15 +04:00
#include "sptr.hh"
#include "tmp_mgr.hh"
namespace BackupExchanger {
using std::string;
using std::vector;
2014-10-02 22:13:15 +04:00
using std::pair;
enum {
backups,
bundles,
index,
Flags
};
/// 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;
}
#endif