X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=remote.h;h=85de06ce3e6a808013d720477a620d6926dc4182;hb=09533a1615813c343e1244275531f933d9b48ddf;hp=705fe805f1212d325aa059ec90349b00e10d172f;hpb=dfb3bcd8cbcc6aa8737deddd332884e23d0e4b22;p=cumulus.git diff --git a/remote.h b/remote.h index 705fe80..85de06c 100644 --- a/remote.h +++ b/remote.h @@ -24,6 +24,8 @@ public: RemoteStore(const std::string &stagedir); ~RemoteStore(); + void set_script(const std::string &script) + { backup_script = script; } RemoteFile *alloc_file(const std::string &name); void enqueue(RemoteFile *file); void sync(); @@ -33,7 +35,7 @@ private: pthread_mutex_t lock; pthread_cond_t cond; - std::string staging_dir; + std::string staging_dir, backup_script; bool terminate; // Set when thread should shut down bool busy; // True while there are pending transfers std::list transfer_queue;