From a8ef703b894c2c0376c872fa35f3fc4f0a17ffe8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 15 May 2013 22:58:55 +0900 Subject: [PATCH] Update doc --- src/includes/aria2/aria2.h | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/includes/aria2/aria2.h b/src/includes/aria2/aria2.h index 46281a66..a700784c 100644 --- a/src/includes/aria2/aria2.h +++ b/src/includes/aria2/aria2.h @@ -280,12 +280,13 @@ bool isNull(const A2Gid& gid); * and it should be BitTorrent Magnet URI. URIs in the |uris| must * point to the same file. If you mix other URIs which point to * another file, aria2 does not complain but download may fail. The - * |options| is an array of 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 - * negative error code. + * |options| is an array of a pair of option name and value. If + * unknown options are included in |options|, they are simply + * ignored. 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 negative error code. */ int addUri(Session* session, A2Gid* gid, @@ -300,11 +301,12 @@ int addUri(Session* session, * the |metalinkFile|. On successful return, if the |gids| is not * ``NULL``, the GIDs of added downloads are appended to the * |*gids|. The |options| is an array of 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 negative error code. + * value. If unknown options are included in |options|, they are + * simply ignored. 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 negative error code. */ int addMetalink(Session* session, std::vector* gids,