/* */ #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" }; const std::vector& DownloadHandlerConstants::getMetalinkExtensions() { static const std::vector l (&METALINK_EXTENSIONS[0], &METALINK_EXTENSIONS[arrayLength(METALINK_EXTENSIONS)]); return l; } const std::vector& DownloadHandlerConstants::getMetalinkContentTypes() { static const std::vector l (&METALINK_CONTENT_TYPES[0], &METALINK_CONTENT_TYPES[arrayLength(METALINK_CONTENT_TYPES)]); return l; } const std::vector& DownloadHandlerConstants::getBtExtensions() { static const std::vector l (&BT_EXTENSIONS[0], &BT_EXTENSIONS[arrayLength(BT_EXTENSIONS)]); return l; } const std::vector& DownloadHandlerConstants::getBtContentTypes() { static const std::vector l (&BT_CONTENT_TYPES[0], &BT_CONTENT_TYPES[arrayLength(BT_CONTENT_TYPES)]); return l; } } // namespace aria2