sp
[ghsmtp.git] / Magic.hpp
blob005608bb5cc69e59cb7a7586f1c867062fce7d25
1 #ifndef MAGIC_DOT_HPP
2 #define MAGIC_DOT_HPP
4 #include <string>
5 #include <string_view>
7 struct magic_set;
9 class Magic {
10 public:
11 Magic(Magic const&) = delete;
12 Magic operator=(Magic const&) = delete;
14 Magic();
15 ~Magic();
17 std::string buffer(std::string_view bfr) const;
18 std::string file(char const* path) const;
20 private:
21 magic_set* magic_; // This library is *not* thread safe!
24 #endif // MAGIC_DOT_HPP