ソースを参照

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

	Added getOption and getGlobalOption to aria2rpc.
	* doc/xmlrpc/aria2rpc
Tatsuhiro Tsujikawa 16 年 前
コミット
d78b2721a5
2 ファイル変更11 行追加0 行削除
  1. 5 0
      ChangeLog
  2. 6 0
      doc/xmlrpc/aria2rpc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2009-12-20  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Added getOption and getGlobalOption to aria2rpc.
+	* doc/xmlrpc/aria2rpc
+
 2009-12-20  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Documented getOption and getGlobalOption XML-RPC method in man

+ 6 - 0
doc/xmlrpc/aria2rpc

@@ -180,6 +180,8 @@ Usage: #{program_name} addUri URI... [options]
        #{program_name} tellStatus GID [options]
        #{program_name} tellActive [options]
        #{program_name} tellWaiting [options]
+       #{program_name} getOption GID [options]
+       #{program_name} getGlobalOption [options]
        #{program_name} getFiles   GID [options]
        #{program_name} getUris    GID [options]
        #{program_name} getPeers   GID [options]
@@ -241,6 +243,10 @@ elsif command == "tellActive" then
   result=client.call("aria2."+command)
 elsif command == "tellWaiting" then
   result=client.call("aria2."+command, resources[0].to_i(), resources[1].to_i())
+elsif command == "getOption" then
+  result=client.call("aria2."+command, resources[0])
+elsif command == "getGlobalOption" then
+  result=client.call("aria2."+command)
 elsif command == "remove" then
   result=client.call("aria2."+command, resources[0])
 elsif command == "getFiles" then