mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -06:00
committed by
GitHub
parent
8c0cd09823
commit
7e0cd223fd
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Bittorrent Client using Qt and libtorrent.
|
||||
* Copyright (C) 2020 Vladimir Golovnev <glassez@yandex.ru>
|
||||
* Copyright (C) 2020-2022 Vladimir Golovnev <glassez@yandex.ru>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@@ -30,6 +30,7 @@
|
||||
|
||||
#include <libtorrent/alert_types.hpp>
|
||||
|
||||
#include "extensiondata.h"
|
||||
#include "nativetorrentextension.h"
|
||||
|
||||
namespace
|
||||
@@ -49,9 +50,9 @@ lt::feature_flags_t NativeSessionExtension::implemented_features()
|
||||
return alert_feature;
|
||||
}
|
||||
|
||||
std::shared_ptr<lt::torrent_plugin> NativeSessionExtension::new_torrent(const lt::torrent_handle &torrentHandle, ClientData)
|
||||
std::shared_ptr<lt::torrent_plugin> NativeSessionExtension::new_torrent(const lt::torrent_handle &torrentHandle, LTClientData clientData)
|
||||
{
|
||||
return std::make_shared<NativeTorrentExtension>(torrentHandle);
|
||||
return std::make_shared<NativeTorrentExtension>(torrentHandle, static_cast<ExtensionData *>(clientData));
|
||||
}
|
||||
|
||||
void NativeSessionExtension::on_alert(const lt::alert *alert)
|
||||
|
||||
Reference in New Issue
Block a user