diff --git a/src/aria2api.cc b/src/aria2api.cc index 72352266..02171b7a 100644 --- a/src/aria2api.cc +++ b/src/aria2api.cc @@ -227,6 +227,43 @@ int addUri(Session* session, return 0; } +int addMetalink(Session* session, + std::vector& gids, + const std::string& metalinkFile, + const KeyVals& options, + int position) +{ +#ifdef ENABLE_METALINK + const SharedHandle& e = + session->context->reqinfo->getDownloadEngine(); + SharedHandle