deprecate torrent_handle::super_seeding() and move it into torrent_status

This commit is contained in:
Arvid Norberg
2012-03-01 09:01:48 +00:00
parent 9cd5c6cc2f
commit 8d754b9674
4 changed files with 18 additions and 12 deletions

View File

@@ -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);

View File

@@ -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;