forked from premiere/premiere-libtorrent
Expose torrent_handle::is_finished()
This commit is contained in:
parent
908273a02b
commit
31bd3b1550
|
@ -263,6 +263,7 @@ void bind_torrent_handle()
|
|||
.def("get_torrent_info", _(&torrent_handle::get_torrent_info), return_internal_reference<>())
|
||||
.def("is_valid", _(&torrent_handle::is_valid))
|
||||
.def("is_seed", _(&torrent_handle::is_seed))
|
||||
.def("is_finished", _(&torrent_handle::is_finished))
|
||||
.def("is_paused", _(&torrent_handle::is_paused))
|
||||
.def("pause", _(&torrent_handle::pause))
|
||||
.def("resume", _(&torrent_handle::resume))
|
||||
|
|
|
@ -310,6 +310,7 @@ namespace libtorrent
|
|||
bool is_valid() const;
|
||||
|
||||
bool is_seed() const;
|
||||
bool is_finished() const;
|
||||
bool is_paused() const;
|
||||
void pause() const;
|
||||
void resume() const;
|
||||
|
|
|
@ -235,6 +235,12 @@ namespace libtorrent
|
|||
TORRENT_FORWARD_RETURN(is_seed(), false);
|
||||
}
|
||||
|
||||
bool torrent_handle::is_finished() const
|
||||
{
|
||||
INVARIANT_CHECK;
|
||||
TORRENT_FORWARD_RETURN(is_finished(), false);
|
||||
}
|
||||
|
||||
bool torrent_handle::is_paused() const
|
||||
{
|
||||
INVARIANT_CHECK;
|
||||
|
|
Loading…
Reference in New Issue