* Use user-modifiable commands instead of slots for the 'on_*' events.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1070 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-10-01 14:19:51 +00:00
parent d7c2960d1e
commit 07b9616ef6
13 changed files with 332 additions and 139 deletions
+14 -2
View File
@@ -171,8 +171,20 @@ main(int argc, char** argv) {
// torrent::ConnectionManager* are valid etc.
initialize_commands();
rpc::parse_command_multiple(rpc::make_target(),
// "set_name = $cat={$system.hostname=,:,$system.pid=}\n"
rpc::parse_command_multiple
(rpc::make_target(),
"system.method.insert = event.download.inserted,list\n"
"system.method.insert = event.download.erased,list\n"
"system.method.insert = event.download.opened,list\n"
"system.method.insert = event.download.closed,list\n"
"system.method.insert = event.download.resumed,list\n"
"system.method.insert = event.download.paused,list\n"
"system.method.insert = event.download.finished,list\n"
"system.method.insert = event.download.hash_done,list\n"
"system.method.insert = event.download.hash_removed,list\n"
"system.method.insert = event.download.hash_queued,list\n"
"set_name = \"$cat=$system.hostname=,:,$system.pid=\"\n"
// Currently not doing any sorting on main.