/* */ #include "DownloadHandlerConstants.h" #include "array_fun.h" namespace aria2 { const char* DownloadHandlerConstants::METALINK_EXTENSIONS[] = { ".metalink" }; const char* DownloadHandlerConstants::METALINK_CONTENT_TYPES[] = { "application/metalink+xml" }; const char* DownloadHandlerConstants::BT_EXTENSIONS[] = { ".torrent" }; const char* DownloadHandlerConstants::BT_CONTENT_TYPES[] = { "application/x-bittorrent" }; std::deque DownloadHandlerConstants::getMetalinkExtensions() { return std::deque(&METALINK_EXTENSIONS[0], &METALINK_EXTENSIONS[arrayLength(METALINK_EXTENSIONS)]); } std::deque DownloadHandlerConstants::getMetalinkContentTypes() { return std::deque(&METALINK_CONTENT_TYPES[0], &METALINK_CONTENT_TYPES[arrayLength(METALINK_CONTENT_TYPES)]); } std::deque DownloadHandlerConstants::getBtExtensions() { return std::deque(&BT_EXTENSIONS[0], &BT_EXTENSIONS[arrayLength(BT_EXTENSIONS)]); } std::deque DownloadHandlerConstants::getBtContentTypes() { return std::deque(&BT_CONTENT_TYPES[0], &BT_CONTENT_TYPES[arrayLength(BT_CONTENT_TYPES)]); } } // namespace aria2