* Enabled 'max_downloads_div' by default.

* Added 'get_{client,library}_version' commands.

* Removed support for appending more than one command to 'schedule'.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@949 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-08-03 11:56:18 +00:00
parent ba634e7d62
commit 37bc4c85c4
8 changed files with 37 additions and 59 deletions
+3 -2
View File
@@ -39,7 +39,6 @@
#include <functional>
#include <torrent/torrent.h>
#include <torrent/chunk_manager.h>
//#include <torrent/connection_manager.h>
#include "core/download_list.h"
#include "core/download_store.h"
@@ -56,11 +55,13 @@ typedef torrent::ChunkManager CM_t;
void
initialize_command_local() {
// core::DownloadList* downloadList = control->core()->download_list();
torrent::ChunkManager* chunkManager = torrent::chunk_manager();
core::DownloadList* dList = control->core()->download_list();
core::DownloadStore* dStore = control->core()->download_store();
ADD_VARIABLE_C_STRING("client_version", PACKAGE_VERSION);
ADD_VARIABLE_C_STRING("library_version", torrent::version());
ADD_VARIABLE_VALUE("max_file_size", -1);
ADD_VARIABLE_VALUE("split_file_size", -1);
ADD_VARIABLE_STRING("split_suffix", ".part");