switch to session_handle in plugin api

This commit is contained in:
Steven Siloti 2015-07-23 20:13:32 -07:00
parent fbc67b4e21
commit 2c1f24c036
2 changed files with 3 additions and 4 deletions

View File

@ -176,13 +176,12 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/socket.hpp"
#include "libtorrent/sha1_hash.hpp" // for sha1_hash
#include "libtorrent/error_code.hpp"
#include "libtorrent/session_handle.hpp"
#include "libtorrent/torrent_handle.hpp"
#include "libtorrent/peer_connection_handle.hpp"
namespace libtorrent
{
namespace aux { struct session_impl; }
struct peer_plugin;
struct peer_request;
class entry;
@ -214,7 +213,7 @@ namespace libtorrent
{ return boost::shared_ptr<torrent_plugin>(); }
// called when plugin is added to a session
virtual void added(aux::session_impl*) {}
virtual void added(session_handle) {}
// called when an alert is posted alerts that are filtered are not posted
virtual void on_alert(alert const*) {}

View File

@ -895,7 +895,7 @@ namespace aux {
m_ses_extensions.push_back(ext);
m_alerts.add_extension(ext);
ext->added(this);
ext->added(session_handle(this));
}
#endif // TORRENT_DISABLE_EXTENSIONS