diff options
author | Carl Dong <contact@carldong.me> | 2022-07-13 12:32:43 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-07-15 12:25:51 -0400 |
commit | b3267258b052557fc136b9a4dcb754afb9219470 (patch) | |
tree | f7946c5e310f6bf535a2f60f6d908d601c8e2ba0 /src/fs.h | |
parent | ae1e8e37567fa603a5977d7d05105c682dd3f7db (diff) |
Move FopenFn to fsbridge namespace
[META] In a future commit in this patchset, it will be used by more than
just validation, and it needs to align with fopen anyway.
Diffstat (limited to 'src/fs.h')
-rw-r--r-- | src/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -9,6 +9,7 @@ #include <cstdio> #include <filesystem> +#include <functional> #include <iomanip> #include <ios> #include <ostream> @@ -199,6 +200,7 @@ bool create_directories(const std::filesystem::path& p, std::error_code& ec) = d /** Bridge operations to C stdio */ namespace fsbridge { + using FopenFn = std::function<FILE*(const fs::path&, const char*)>; FILE *fopen(const fs::path& p, const char *mode); /** |