changed the definition of file_progress and deprecated the old function. Python bindings only exposes the new one
This commit is contained in:
@@ -222,6 +222,7 @@ namespace libtorrent
|
||||
bool is_piece_filtered(int index) const;
|
||||
void filtered_pieces(std::vector<bool>& bitmask) const;
|
||||
void filter_files(std::vector<bool> const& files);
|
||||
void file_progress(std::vector<float>& fp) const;
|
||||
// ============ end deprecation =============
|
||||
|
||||
void piece_availability(std::vector<int>& avail) const;
|
||||
@@ -235,7 +236,8 @@ namespace libtorrent
|
||||
void prioritize_files(std::vector<int> const& files);
|
||||
|
||||
torrent_status status() const;
|
||||
void file_progress(std::vector<float>& fp) const;
|
||||
|
||||
void file_progress(std::vector<size_type>& fp) const;
|
||||
|
||||
void use_interface(const char* net_interface);
|
||||
tcp::endpoint const& get_interface() const { return m_net_interface; }
|
||||
|
@@ -322,7 +322,8 @@ namespace libtorrent
|
||||
// fills the specified vector with the download progress [0, 1]
|
||||
// of each file in the torrent. The files are ordered as in
|
||||
// the torrent_info.
|
||||
void file_progress(std::vector<float>& progress);
|
||||
void file_progress(std::vector<float>& progress) const TORRENT_DEPRECATED;
|
||||
void file_progress(std::vector<size_type>& progress) const;
|
||||
|
||||
std::vector<announce_entry> const& trackers() const;
|
||||
void replace_trackers(std::vector<announce_entry> const&) const;
|
||||
|
Reference in New Issue
Block a user