From e5cccd335cc99f28615d44d5cb0b4400239c63cd Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 2 May 2013 09:40:27 +0900 Subject: Add addMetalink API function --- src/includes/aria2/aria2.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/includes') diff --git a/src/includes/aria2/aria2.h b/src/includes/aria2/aria2.h index 46415a4f..30284e55 100644 --- a/src/includes/aria2/aria2.h +++ b/src/includes/aria2/aria2.h @@ -138,6 +138,20 @@ int addUri(Session* session, const KeyVals& options, int position = -1); +// Adds Metalink download. The path to Metalink file is specified by +// the |metalinkFile|. On successful return, the GID of added +// download is appended to the |gids|. The |options| is a pair of +// option name and value. If the |position| is not negative integer, +// the new download is inserted at position in the waiting queue. If +// the |position| is negative or the |position| is larger than the +// size of the queue, it is appended at the end of the queue. This +// function returns 0 if it succeeds, or -1. +int addMetalink(Session* session, + std::vector& gids, + const std::string& metalinkFile, + const KeyVals& options, + int position = -1); + // Returns the array of active download GID. std::vector getActiveDownload(Session* session); -- cgit