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_helpers.cc

    r971 r1041  
    105105void 
    106106add_variable(const char* getKey, const char* setKey, const char* defaultSetKey, 
    107              rpc::CommandMap::generic_slot getSlot, rpc::CommandMap::generic_slot setSlot, 
     107             rpc::Command::generic_slot getSlot, rpc::Command::generic_slot setSlot, 
    108108             const torrent::Object& defaultObject) { 
    109109  rpc::CommandVariable* variable = commandVariablesItr++; 
    110110  variable->set_variable(defaultObject); 
    111111 
    112   rpc::commands.insert_generic(getKey, variable, getSlot, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, "i:", ""); 
     112  rpc::commands.insert_type(getKey, variable, getSlot, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, "i:", ""); 
    113113 
    114114  if (setKey) 
    115     rpc::commands.insert_generic(setKey, variable, setSlot, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, "i:", ""); 
     115    rpc::commands.insert_type(setKey, variable, setSlot, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, "i:", ""); 
    116116 
    117117  if (defaultSetKey) 
    118     rpc::commands.insert_generic(defaultSetKey, variable, setSlot, rpc::CommandMap::flag_dont_delete, "i:", ""); 
     118    rpc::commands.insert_type(defaultSetKey, variable, setSlot, rpc::CommandMap::flag_dont_delete, "i:", ""); 
    119119}