diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-06-05 08:55:54 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-06-05 08:55:54 +0200 |
| commit | 81fa478a642b25715adecf27c283e6f15334d705 (patch) | |
| tree | 6e0bb3c889cfb9d38bac6b735512459cbbce064b /cabinet/magic.hpp | |
| parent | 1ca48e3790e69e63c3789a32d541e4086e849030 (diff) | |
| download | cabinet-81fa478a642b25715adecf27c283e6f15334d705.tar.xz cabinet-81fa478a642b25715adecf27c283e6f15334d705.zip | |
magic: implement file descriptor support
Diffstat (limited to 'cabinet/magic.hpp')
| -rw-r--r-- | cabinet/magic.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cabinet/magic.hpp b/cabinet/magic.hpp index 222d488..96f4b08 100644 --- a/cabinet/magic.hpp +++ b/cabinet/magic.hpp @@ -55,6 +55,7 @@ namespace cab auto operator=(magic && other) noexcept -> magic &; auto process(std::filesystem::path path) -> std::expected<std::string, std::string>; + auto process(int file_descriptor) -> std::expected<std::string, std::string>; private: explicit magic(::magic_t cookie) noexcept; |
