From 9d397a38347599295ad3e603e5d333988e0fa01f Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 15 Apr 2008 01:16:09 +0000 Subject: [PATCH] Fix peer_plugin.cpp in python bindings to compile. --- bindings/python/src/peer_plugin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/python/src/peer_plugin.cpp b/bindings/python/src/peer_plugin.cpp index 94b5fde66..2689728b3 100755 --- a/bindings/python/src/peer_plugin.cpp +++ b/bindings/python/src/peer_plugin.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include using namespace boost::python; @@ -144,7 +145,7 @@ namespace return this->peer_plugin::on_request(req); } - bool on_piece(peer_request const& piece, char const* data) + bool on_piece(peer_request const& piece, disk_buffer_holder& data) { if (override f = this->get_override("on_piece")) return f(piece, data); @@ -152,7 +153,7 @@ namespace return peer_plugin::on_piece(piece, data); } - bool default_on_piece(peer_request const& piece, char const* data) + bool default_on_piece(peer_request const& piece, disk_buffer_holder& data) { return this->peer_plugin::on_piece(piece, data); }