deprecate torrent_handle::super_seeding() and move it into torrent_status
This commit is contained in:
@@ -8165,6 +8165,7 @@ namespace libtorrent
|
||||
st->sequential_download = m_sequential_download;
|
||||
st->is_seeding = is_seed();
|
||||
st->is_finished = is_finished();
|
||||
st->super_seeding = m_super_seeding;
|
||||
st->has_metadata = valid_metadata();
|
||||
bytes_done(*st, flags & torrent_handle::query_accurate_download_counters);
|
||||
TORRENT_ASSERT(st->total_wanted_done >= 0);
|
||||
|
@@ -658,6 +658,13 @@ namespace libtorrent
|
||||
TORRENT_ASYNC_CALL1(filter_files, files);
|
||||
}
|
||||
|
||||
bool torrent_handle::super_seeding() const
|
||||
{
|
||||
INVARIANT_CHECK;
|
||||
TORRENT_SYNC_CALL_RET(bool, false, super_seeding);
|
||||
return r;
|
||||
}
|
||||
|
||||
// ============ end deprecation ===============
|
||||
#endif
|
||||
|
||||
@@ -841,13 +848,6 @@ namespace libtorrent
|
||||
TORRENT_ASYNC_CALL(scrape_tracker);
|
||||
}
|
||||
|
||||
bool torrent_handle::super_seeding() const
|
||||
{
|
||||
INVARIANT_CHECK;
|
||||
TORRENT_SYNC_CALL_RET(bool, false, super_seeding);
|
||||
return r;
|
||||
}
|
||||
|
||||
void torrent_handle::super_seeding(bool on) const
|
||||
{
|
||||
INVARIANT_CHECK;
|
||||
|
Reference in New Issue
Block a user