diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-12-20 14:44:54 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-12-20 14:44:54 +0000 |
| commit | c7a59e076e08df350430edf63eaef5a04cc1bd7a (patch) | |
| tree | 0f2e8f8b6079fef698711aeae171449507ccec59 | |
| parent | 26e319df4379cbabbda61255780cfa6efb9e5183 (diff) | |
2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Documented getOption and getGlobalOption XML-RPC method in man
page
* doc/aria2c.1.txt
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | doc/aria2c.1 | 8 | ||||
| -rw-r--r-- | doc/aria2c.1.html | 12 | ||||
| -rw-r--r-- | doc/aria2c.1.txt | 14 |
4 files changed, 39 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> + Documented getOption and getGlobalOption XML-RPC method in man + page + * doc/aria2c.1.txt + +2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> + Added getOption and getGlobalOption XML-RPC method. getOption takes GID as a parameter and returns its options as struct. getGlobalOption takes no parameter and returns global diff --git a/doc/aria2c.1 b/doc/aria2c.1 index 93254747..53a39497 100644 --- a/doc/aria2c.1 +++ b/doc/aria2c.1 @@ -2315,10 +2315,18 @@ This method returns the list of active downloads\&. The respose is of type array .sp This method returns the list of waiting download in the range of [\fIoffset\fR, \fIoffset\fR+\fInum\fR)\&. \fIoffset\fR is of type integer and specifies the offset from the download waiting at the front\&. \fInum\fR is of type integer and specifies the number of downloads to be returned\&. For example, imagine that three downloads "A","B" and "C" are waiting in this order\&. aria2\&.tellWaiting(0, 1) returns "A"\&. aria2\&.tellWaiting(1, 2) returns "B" and "C"\&. The respose is of type array and its element is the same struct returned by \fBaria2\&.tellStatus\fR method\&. .sp +\fBaria2\&.getOption\fR \fIgid\fR +.sp +This method returns options of the download denoted by \fIgid\fR\&. The response is of type struct\&. Its key is the name of option\&. The value type is string\&. +.sp \fBaria2\&.changeOption\fR \fIgid, options\fR .sp This method changes options of the download denoted by \fIgid\fR dynamically\&. \fIgid\fR is of type string\&. \fIoptions\fR is of type struct and the available options are: \fBbt\-max\-peers\fR, \fBbt\-request\-peer\-speed\-limit\fR, \fBmax\-download\-limit\fR and \fBmax\-upload\-limit\fR\&. This method returns "OK" for success\&. .sp +\fBaria2\&.getGlobalOption\fR +.sp +This method returns global options\&. The response is of type struct\&. Its key is the name of option\&. The value type is string\&. Because global options are used as a template for the options of newly added download, the response contains keys returned by \fBaria2\&.getOption\fR method\&. +.sp \fBaria2\&.changeGlobalOption\fR \fIoptions\fR .sp This method changes global options dynamically\&. \fIoptions\fR is of type struct and the available options are \fBmax\-concurrent\-downloads\fR, \fBmax\-overall\-download\-limit\fR and \fBmax\-overall\-upload\-limit\fR\&. This method returns "OK" for success\&. diff --git a/doc/aria2c.1.html b/doc/aria2c.1.html index bf921948..271beb43 100644 --- a/doc/aria2c.1.html +++ b/doc/aria2c.1.html @@ -2983,12 +2983,22 @@ example, imagine that three downloads "A","B" and "C" are waiting in this order. aria2.tellWaiting(0, 1) returns "A". aria2.tellWaiting(1,
2) returns "B" and "C". The respose is of type array and its element
is the same struct returned by <strong>aria2.tellStatus</strong> method.</p></div>
+<div class="paragraph"><p><strong>aria2.getOption</strong> <em>gid</em></p></div>
+<div class="paragraph"><p>This method returns options of the download denoted by <em>gid</em>. The
+response is of type struct. Its key is the name of option. The value type
+is string.</p></div>
<div class="paragraph"><p><strong>aria2.changeOption</strong> <em>gid, options</em></p></div>
<div class="paragraph"><p>This method changes options of the download denoted by <em>gid</em>
dynamically. <em>gid</em> is of type string. <em>options</em> is of type struct
and the available options are: <strong>bt-max-peers</strong>,
<strong>bt-request-peer-speed-limit</strong>, <strong>max-download-limit</strong> and
<strong>max-upload-limit</strong>. This method returns "OK" for success.</p></div>
+<div class="paragraph"><p><strong>aria2.getGlobalOption</strong></p></div>
+<div class="paragraph"><p>This method returns global options. The response is of type
+struct. Its key is the name of option. The value type is string.
+Because global options are used as a template for the options of newly
+added download, the response contains keys returned by
+<strong>aria2.getOption</strong> method.</p></div>
<div class="paragraph"><p><strong>aria2.changeGlobalOption</strong> <em>options</em></p></div>
<div class="paragraph"><p>This method changes global options dynamically. <em>options</em> is of type
struct and the available options are <strong>max-concurrent-downloads</strong>,
@@ -3486,7 +3496,7 @@ files in the program, then also delete it here.</p></div> <div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2009-12-20 18:35:41 JST
+Last updated 2009-12-20 23:42:01 JST
</div>
</div>
</body>
diff --git a/doc/aria2c.1.txt b/doc/aria2c.1.txt index f1427df0..bc7b20b3 100644 --- a/doc/aria2c.1.txt +++ b/doc/aria2c.1.txt @@ -1330,6 +1330,12 @@ this order. aria2.tellWaiting(0, 1) returns "A". aria2.tellWaiting(1, 2) returns "B" and "C". The respose is of type array and its element is the same struct returned by *aria2.tellStatus* method. +*aria2.getOption* 'gid' + +This method returns options of the download denoted by 'gid'. The +response is of type struct. Its key is the name of option. The value type +is string. + *aria2.changeOption* 'gid, options' This method changes options of the download denoted by 'gid' @@ -1338,6 +1344,14 @@ and the available options are: *bt-max-peers*, *bt-request-peer-speed-limit*, *max-download-limit* and *max-upload-limit*. This method returns "OK" for success. +*aria2.getGlobalOption* + +This method returns global options. The response is of type +struct. Its key is the name of option. The value type is string. +Because global options are used as a template for the options of newly +added download, the response contains keys returned by +*aria2.getOption* method. + *aria2.changeGlobalOption* 'options' This method changes global options dynamically. 'options' is of type |
