mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 03:32:29 +00:00
* Added support for xmlrpc commands on torrent::File objects. The
xmlrpc command takes the download info-hash and the file index as the first two parameters. * Added several file commands. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@937 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -43,6 +43,7 @@ namespace rpc {
|
||||
class CommandSlot;
|
||||
class CommandVariable;
|
||||
class CommandDownloadSlot;
|
||||
class CommandFileSlot;
|
||||
}
|
||||
|
||||
// By using a static array we avoid allocating the variables on the
|
||||
@@ -50,6 +51,7 @@ namespace rpc {
|
||||
#define COMMAND_SLOTS_SIZE 100
|
||||
#define COMMAND_VARIABLES_SIZE 100
|
||||
#define COMMAND_DOWNLOAD_SLOTS_SIZE 100
|
||||
#define COMMAND_FILE_SLOTS_SIZE 25
|
||||
|
||||
#define ADDING_COMMANDS
|
||||
|
||||
@@ -59,6 +61,8 @@ extern rpc::CommandVariable commandVariables[COMMAND_VARIABLES_SIZE];
|
||||
extern rpc::CommandVariable* commandVariablesItr;
|
||||
extern rpc::CommandDownloadSlot commandDownloadSlots[COMMAND_DOWNLOAD_SLOTS_SIZE];
|
||||
extern rpc::CommandDownloadSlot* commandDownloadSlotsItr;
|
||||
extern rpc::CommandFileSlot commandFileSlots[COMMAND_FILE_SLOTS_SIZE];
|
||||
extern rpc::CommandFileSlot* commandFileSlotsItr;
|
||||
|
||||
void initialize_commands();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user