]> git.decadent.org.uk Git - videolink.git/blobdiff - temp_file.hpp
VideoLink no longer works with the official Debian package of ffmpeg because it does...
[videolink.git] / temp_file.hpp
index e1d942efa0ecbd06b308f760af3394bc9c8abb94..9ea55f375848cfd1b9a2bae467eb7a1d5970c9ae 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2005-6 Ben Hutchings <ben@decadentplace.org.uk>.
+// Copyright 2005-6 Ben Hutchings <ben@decadent.org.uk>.
 // See the file "COPYING" for licence details.
 
 #ifndef INC_TEMP_FILE_HPP
@@ -22,8 +22,17 @@ public:
 private:
     int fd_;
     std::string name_;
+};
 
-    static bool keep_;
+class temp_dir
+{
+public:
+    explicit temp_dir(const std::string & base_name);
+    ~temp_dir();
+    const std::string & get_name() const { return name_; }
+
+private:
+    std::string name_;
 };
 
 #endif // !INC_TEMP_FILE_HPP