mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 13:42:30 +00:00
* 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:
@@ -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&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user