]> git.decadent.org.uk Git - videolink.git/blobdiff - temp_file.hpp
Release versions 1.2.11 and 1.2.11-1
[videolink.git] / temp_file.hpp
index 1ead61afb9f3831ae3b7a12c7d29889fcfb19bc6..9ea55f375848cfd1b9a2bae467eb7a1d5970c9ae 100644 (file)
@@ -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