summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-14 00:19:55 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-05 21:46:30 +0200
commit2d24494031316bdbed149b931ddfc122ff8e9660 (patch)
tree05c9c574c202dbedcf212dd1b9623f57d8a6d5f9 /src
parent00e10ea721796f660b3479eb6f862125c255dc88 (diff)
Add accessor for use with things like fprintf().
Diffstat (limited to 'src')
-rw-r--r--src/file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file.h b/src/file.h
index 26d0704a..ec13fc82 100644
--- a/src/file.h
+++ b/src/file.h
@@ -91,6 +91,10 @@ public:
*/
FILE* take();
+ FILE* get() {
+ return _file;
+ }
+
private:
boost::filesystem::path _path;
FILE* _file = nullptr;