Changeset 1041 for trunk/rtorrent/src/command_helpers.h
- Timestamp:
- 03/13/08 10:28:17 (4 years ago)
- Files:
-
- 1 modified
-
trunk/rtorrent/src/command_helpers.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtorrent/src/command_helpers.h
r1030 r1041 79 79 void 80 80 add_variable(const char* getKey, const char* setKey, const char* defaultSetKey, 81 rpc::Command Map::generic_slot getSlot, rpc::CommandMap::generic_slot setSlot,81 rpc::Command::generic_slot getSlot, rpc::Command::generic_slot setSlot, 82 82 const torrent::Object& defaultObject); 83 83 … … 96 96 #define ADD_COMMAND_SLOT(key, function, slot, parm, doc) \ 97 97 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); 99 99 100 100 #define ADD_ANY_SLOT(key, function, slot, parm, doc) \ 101 101 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); 103 103 104 104 #define ADD_COMMAND_SLOT_PRIVATE(key, function, slot) \ 105 105 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); 107 107 108 108 #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); 110 110 111 111 #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); 113 113 114 114 #define ADD_COMMAND_VALUE_TRI(key, set, get) \
