Expose torrent_handle::is_finished()
This commit is contained in:
parent
49af682226
commit
4ffe14573f
|
@ -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))
|
||||
|
|
|
@ -306,6 +306,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;
|
||||
|
|
|
@ -261,6 +261,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