summaryrefslogtreecommitdiff
path: root/src/lib/copy_to_drive_job.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-07-20 00:51:23 +0200
committerCarl Hetherington <cth@carlh.net>2022-07-20 10:18:17 +0200
commit4bdaccb5ede7d9a1066e0a0665fcfce9b1e3241e (patch)
treee8473bb1a1b4736e88a973dc25bcfa369c3ad000 /src/lib/copy_to_drive_job.h
parent6d101863c87b34af5c3992168182e80445e56ec7 (diff)
Allow multiple DCPs to be written to a disk (#1756).
Diffstat (limited to 'src/lib/copy_to_drive_job.h')
-rw-r--r--src/lib/copy_to_drive_job.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/copy_to_drive_job.h b/src/lib/copy_to_drive_job.h
index cb91195c2..8616a05d2 100644
--- a/src/lib/copy_to_drive_job.h
+++ b/src/lib/copy_to_drive_job.h
@@ -25,7 +25,7 @@
class CopyToDriveJob : public Job
{
public:
- CopyToDriveJob (boost::filesystem::path dcp, Drive drive, Nanomsg& nanomsg);
+ CopyToDriveJob (std::vector<boost::filesystem::path> const& dcps, Drive drive, Nanomsg& nanomsg);
std::string name () const override;
std::string json_name () const override;
@@ -37,7 +37,7 @@ public:
private:
void count (boost::filesystem::path dir, uint64_t& total_bytes);
void copy (boost::filesystem::path from, boost::filesystem::path to, uint64_t& total_remaining, uint64_t total);
- boost::filesystem::path _dcp;
+ std::vector<boost::filesystem::path> _dcps;
Drive _drive;
Nanomsg& _nanomsg;
};