/* */ #ifndef D_MAGNET_H #define D_MAGNET_H #include "common.h" #include "ValueBase.h" namespace aria2 { namespace magnet { // Parses Magnet URI magnet and returns the result. Because same // parameter name can appear more than once, the value associated with // a key is std::unique_ptr. A parameter value is stored in a // list. If parsing operation failed, nullptr is returned. std::unique_ptr parse(const std::string& magnet); } // namespace magnet } // namespace aria2 #endif // D_MAGNET_H