summaryrefslogtreecommitdiff
path: root/src/BtRegistry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-22 00:41:45 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-07-22 00:41:45 +0900
commita6b7ef5f0764e07b54bd638ba0ee73dc7ff83e6f (patch)
tree578a753379ef5c9db02b700781d3a6c179050fdd /src/BtRegistry.cc
parent97f76b7cf467cbd0a77140df9d892de6b8c34e8d (diff)
Eliminated static variable from LpdReceiveMessageCommand.
BtRegistry now holds LpdMessageReceiver.
Diffstat (limited to 'src/BtRegistry.cc')
-rw-r--r--src/BtRegistry.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/BtRegistry.cc b/src/BtRegistry.cc
index 883ff4bf..360b86f6 100644
--- a/src/BtRegistry.cc
+++ b/src/BtRegistry.cc
@@ -41,6 +41,7 @@
#include "BtRuntime.h"
#include "BtProgressInfoFile.h"
#include "bittorrent_helper.h"
+#include "LpdMessageReceiver.h"
namespace aria2 {
@@ -95,6 +96,12 @@ void BtRegistry::removeAll() {
pool_.clear();
}
+void BtRegistry::setLpdMessageReceiver
+(const SharedHandle<LpdMessageReceiver>& receiver)
+{
+ lpdMessageReceiver_ = receiver;
+}
+
BtObject::BtObject
(const SharedHandle<DownloadContext>& downloadContext,
const SharedHandle<PieceStorage>& pieceStorage,