* New code for handling options/variables which used bencode and can

redirect get/set operations.

* Fixed(?) a bug in RequestList::downloading(...) that could cause a
segfault when pieces in the canceled list start downloading.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@622 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-01-13 03:26:46 +00:00
parent b25af84ee8
commit 4028ab2295
15 changed files with 438 additions and 138 deletions
+4 -5
View File
@@ -38,16 +38,15 @@
#define RTORRENT_OPTION_HANDLER_RULES_H
#include <cstdio>
#include <string>
#include <stdexcept>
#include <sigc++/bind.h>
#include "option_handler.h"
class Control;
void initialize_option_handler(Control* c);
class OptionHandlerInt : public OptionHandlerBase {
class OptionHandlerInt {
public:
typedef void (*Apply)(Control*, int);
@@ -61,7 +60,7 @@ private:
Apply m_apply;
};
class OptionHandlerOctal : public OptionHandlerBase {
class OptionHandlerOctal {
public:
typedef void (*Apply)(Control*, int);
@@ -75,7 +74,7 @@ private:
Apply m_apply;
};
class OptionHandlerString : public OptionHandlerBase {
class OptionHandlerString {
public:
typedef void (*Apply)(Control*, const std::string&);