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