From: Joel Rosdahl Date: Mon, 30 Sep 2019 19:28:12 +0000 (+0200) Subject: Add AtomicFile::stream X-Git-Tag: v4.0~759 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f21f65d59de2a31b42494f3414dc9e549df861fa;p=thirdparty%2Fccache.git Add AtomicFile::stream --- diff --git a/src/AtomicFile.hpp b/src/AtomicFile.hpp index 546a765bb..66d681bca 100644 --- a/src/AtomicFile.hpp +++ b/src/AtomicFile.hpp @@ -34,6 +34,8 @@ public: AtomicFile(const std::string& destination_path, Mode mode); ~AtomicFile(); + FILE* stream(); + void write(const std::string& data); void write(const std::vector& data); @@ -47,3 +49,9 @@ private: std::string m_tmp_path; FILE* m_stream; }; + +inline FILE* +AtomicFile::stream() +{ + return m_stream; +}