From 7832816c0d239c1cd7a91daef3f15c8f94197e28 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 4 Jun 2026 19:58:56 +0200 Subject: magic: implement file processing --- cabinet/magic.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cabinet/magic.hpp') diff --git a/cabinet/magic.hpp b/cabinet/magic.hpp index 25cf60b..222d488 100644 --- a/cabinet/magic.hpp +++ b/cabinet/magic.hpp @@ -4,6 +4,8 @@ #include #include +#include +#include #include #include #include @@ -52,6 +54,8 @@ namespace cab auto operator=(magic const &) -> magic & = delete; auto operator=(magic && other) noexcept -> magic &; + auto process(std::filesystem::path path) -> std::expected; + private: explicit magic(::magic_t cookie) noexcept; -- cgit v1.2.3