2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Added aria2.pause, aria2.forcePause, aria2.pauseAll,
	aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
	method to aria2rpc
	* doc/xmlrpc/aria2rpc
pull/1/head
Tatsuhiro Tsujikawa 2010-04-14 12:55:26 +00:00
parent a71148b702
commit a8f57aa85f
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added aria2.pause, aria2.forcePause, aria2.pauseAll,
aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
method to aria2rpc
* doc/xmlrpc/aria2rpc
2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use elapsed time between two mach_absolute_time() calls.

View File

@ -216,6 +216,12 @@ Usage: #{program_name} addUri URI... [options]
#{program_name} addTorrent /path/to/torrent_file URI... [options]
#{program_name} addMetalink /path/to/metalink_file [options]
#{program_name} remove GID [options]
#{program_name} pause GID [options]
#{program_name} pauseAll [options]
#{program_name} forcePause GID [options]
#{program_name} forcePauseAll [options]
#{program_name} unpause GID [options]
#{program_name} unpauseAll [options]
#{program_name} changePosition GID pos how [options]
#{program_name} tellStatus GID [options]
#{program_name} tellActive [options]
@ -293,6 +299,18 @@ elsif command == "getOption" then
result=client.call("aria2."+command, resources[0])
elsif command == "getGlobalOption" then
result=client.call("aria2."+command)
elsif command == "pause" then
result=client.call("aria2."+command, resources[0])
elsif command == "pauseAll" then
result=client.call("aria2."+command)
elsif command == "forcePause" then
result=client.call("aria2."+command, resources[0])
elsif command == "forcePauseAll" then
result=client.call("aria2."+command)
elsif command == "unpause" then
result=client.call("aria2."+command, resources[0])
elsif command == "unpauseAll" then
result=client.call("aria2."+command)
elsif command == "remove" then
result=client.call("aria2."+command, resources[0])
elsif command == "changePosition" then