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.h

    r1030 r1041  
    7979void 
    8080add_variable(const char* getKey, const char* setKey, const char* defaultSetKey, 
    81              rpc::CommandMap::generic_slot getSlot, rpc::CommandMap::generic_slot setSlot, 
     81             rpc::Command::generic_slot getSlot, rpc::Command::generic_slot setSlot, 
    8282             const torrent::Object& defaultObject); 
    8383 
     
    9696#define ADD_COMMAND_SLOT(key, function, slot, parm, doc)    \ 
    9797  commandSlotsItr->set_slot(slot); \ 
    98   rpc::commands.insert_generic(key, commandSlotsItr++, &rpc::CommandSlot<void>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
     98  rpc::commands.insert_type(key, commandSlotsItr++, &rpc::CommandSlot<void>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
    9999 
    100100#define ADD_ANY_SLOT(key, function, slot, parm, doc)    \ 
    101101  commandAnySlotsItr->set_slot(slot); \ 
    102   rpc::commands.insert_any(key, commandAnySlotsItr++, &rpc::CommandSlot<rpc::target_type>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
     102  rpc::commands.insert_type(key, commandAnySlotsItr++, &rpc::CommandSlot<rpc::target_type>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
    103103 
    104104#define ADD_COMMAND_SLOT_PRIVATE(key, function, slot) \ 
    105105  commandSlotsItr->set_slot(slot); \ 
    106   rpc::commands.insert_generic(key, commandSlotsItr++, &rpc::CommandSlot<void>::function, rpc::CommandMap::flag_dont_delete, NULL, NULL); 
     106  rpc::commands.insert_type(key, commandSlotsItr++, &rpc::CommandSlot<void>::function, rpc::CommandMap::flag_dont_delete, NULL, NULL); 
    107107 
    108108#define ADD_COMMAND_COPY(key, function, parm, doc) \ 
    109   rpc::commands.insert_generic(key, (commandSlotsItr - 1), &rpc::CommandSlot<void>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
     109  rpc::commands.insert_type(key, (commandSlotsItr - 1), &rpc::CommandSlot<void>::function, rpc::CommandMap::flag_dont_delete | rpc::CommandMap::flag_public_xmlrpc, parm, doc); 
    110110 
    111111#define ADD_COMMAND_COPY_PRIVATE(key, function) \ 
    112   rpc::commands.insert_generic(key, (commandSlotsItr - 1), &rpc::CommandSlot<void>::function, rpc::CommandMap::flag_dont_delete, NULL, NULL); 
     112  rpc::commands.insert_type(key, (commandSlotsItr - 1), &rpc::CommandSlot<void>::function, rpc::CommandMap::flag_dont_delete, NULL, NULL); 
    113113 
    114114#define ADD_COMMAND_VALUE_TRI(key, set, get) \