Show
Ignore:
Timestamp:
03/13/08 10:28:17 (4 years ago)
Author:
rakshasa
Message:

* Fixed minor bugs in the display of tracker groups. Patch by Josef
Drexler.

* Cleanup of the CommandMap? class.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rtorrent/src/command_file.cc

    r1030 r1041  
    100100#define ADD_CF_SLOT(key, function, slot, parm, doc)    \ 
    101101  commandFileSlotsItr->set_slot(slot); \ 
    102   rpc::commands.insert_file(key, commandFileSlotsItr++, &rpc::CommandSlot<torrent::File*>::function, rpc::CommandMap::flag_dont_delete, parm, doc); 
     102  rpc::commands.insert_type(key, commandFileSlotsItr++, &rpc::CommandSlot<torrent::File*>::function, rpc::CommandMap::flag_dont_delete, parm, doc); 
    103103 
    104104#define ADD_CF_SLOT_PUBLIC(key, function, slot, parm, doc)    \ 
    105105  commandFileSlotsItr->set_slot(slot); \ 
    106   rpc::commands.insert_file(key, commandFileSlotsItr++, &rpc::CommandSlot<torrent::File*>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
     106  rpc::commands.insert_type(key, commandFileSlotsItr++, &rpc::CommandSlot<torrent::File*>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
    107107 
    108108#define ADD_CF_VOID(key, slot) \ 
     
    124124#define ADD_CFI_SLOT_PUBLIC(key, function, slot, parm, doc)    \ 
    125125  commandFileItrSlotsItr->set_slot(slot); \ 
    126   rpc::commands.insert_file_itr(key, commandFileItrSlotsItr++, &rpc::CommandSlot<torrent::FileListIterator*>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
     126  rpc::commands.insert_type(key, commandFileItrSlotsItr++, &rpc::CommandSlot<torrent::FileListIterator*>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
    127127 
    128128#define ADD_CFI_VOID(key, slot) \