switch to session_handle in plugin api
This commit is contained in:
parent
fbc67b4e21
commit
2c1f24c036
|
@ -176,13 +176,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "libtorrent/socket.hpp"
|
#include "libtorrent/socket.hpp"
|
||||||
#include "libtorrent/sha1_hash.hpp" // for sha1_hash
|
#include "libtorrent/sha1_hash.hpp" // for sha1_hash
|
||||||
#include "libtorrent/error_code.hpp"
|
#include "libtorrent/error_code.hpp"
|
||||||
|
#include "libtorrent/session_handle.hpp"
|
||||||
#include "libtorrent/torrent_handle.hpp"
|
#include "libtorrent/torrent_handle.hpp"
|
||||||
#include "libtorrent/peer_connection_handle.hpp"
|
#include "libtorrent/peer_connection_handle.hpp"
|
||||||
|
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
{
|
{
|
||||||
namespace aux { struct session_impl; }
|
|
||||||
|
|
||||||
struct peer_plugin;
|
struct peer_plugin;
|
||||||
struct peer_request;
|
struct peer_request;
|
||||||
class entry;
|
class entry;
|
||||||
|
@ -214,7 +213,7 @@ namespace libtorrent
|
||||||
{ return boost::shared_ptr<torrent_plugin>(); }
|
{ return boost::shared_ptr<torrent_plugin>(); }
|
||||||
|
|
||||||
// called when plugin is added to a session
|
// 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
|
// called when an alert is posted alerts that are filtered are not posted
|
||||||
virtual void on_alert(alert const*) {}
|
virtual void on_alert(alert const*) {}
|
||||||
|
|
|
@ -895,7 +895,7 @@ namespace aux {
|
||||||
|
|
||||||
m_ses_extensions.push_back(ext);
|
m_ses_extensions.push_back(ext);
|
||||||
m_alerts.add_extension(ext);
|
m_alerts.add_extension(ext);
|
||||||
ext->added(this);
|
ext->added(session_handle(this));
|
||||||
}
|
}
|
||||||
#endif // TORRENT_DISABLE_EXTENSIONS
|
#endif // TORRENT_DISABLE_EXTENSIONS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue