Forráskód Böngészése

2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Documented getOption and getGlobalOption XML-RPC method in man
	page
	* doc/aria2c.1.txt
Tatsuhiro Tsujikawa 16 éve
szülő
commit
c7a59e076e
4 módosított fájl, 39 hozzáadás és 1 törlés
  1. 6 0
      ChangeLog
  2. 8 0
      doc/aria2c.1
  3. 11 1
      doc/aria2c.1.html
  4. 14 0
      doc/aria2c.1.txt

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+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

+ 8 - 0
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\&.

+ 11 - 1
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>

+ 14 - 0
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