summaryrefslogtreecommitdiff
path: root/cabinet/magic.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'cabinet/magic.hpp')
-rw-r--r--cabinet/magic.hpp4
1 files changed, 4 insertions, 0 deletions
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 <magic.h>
#include <expected>
+#include <filesystem>
+#include <string>
#include <string_view>
#include <system_error>
#include <utility>
@@ -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<std::string, std::string>;
+
private:
explicit magic(::magic_t cookie) noexcept;