* Return torrent::Object instead of reference from

utils::VariableMap::call_command(...).

* More cleanup of the command calls.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@895 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-04-28 02:37:08 +00:00
parent c5beb24d6c
commit 43fd2c92ec
19 changed files with 353 additions and 192 deletions
+3 -2
View File
@@ -46,8 +46,8 @@ namespace utils {
// By using a static array we avoid allocating the variables on the
// heap. This should reduce memory use and improve cache locality.
#define COMMAND_SLOTS_SIZE 18
#define COMMAND_VARIABLES_SIZE 23
#define COMMAND_SLOTS_SIZE 24
#define COMMAND_VARIABLES_SIZE 24
extern utils::CommandSlot commandSlots[COMMAND_SLOTS_SIZE];
extern utils::CommandSlot* commandSlotsItr;
@@ -57,6 +57,7 @@ extern utils::CommandVariable* commandVariablesItr;
void initialize_variables();
void initialize_download_variables();
void initialize_command_events();
void initialize_command_network();
void initialize_command_ui();
void initialize_commands();