From 4a1951f6f25e7b2ae47aa32571b6fbc06de9faa8 Mon Sep 17 00:00:00 2001 From: spyhole Date: Sat, 2 Jul 2005 08:48:37 +0000 Subject: [PATCH] *** empty log message *** --- include/libtorrent/torrent.hpp | 6 +++++- include/libtorrent/torrent_handle.hpp | 6 +++++- include/libtorrent/torrent_info.hpp | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index c24c36dff..1802486c3 100755 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -150,7 +150,11 @@ namespace libtorrent void filter_pieces(std::vector const& bitmask); bool is_piece_filtered(int index) const; void filtered_pieces(std::vector& bitmask) const; - + + //idea from Arvid and MooPolice + //todo refactoring and improving the function body + void filter_file(int index, bool filter); + torrent_status status() const; void use_interface(const char* net_interface); diff --git a/include/libtorrent/torrent_handle.hpp b/include/libtorrent/torrent_handle.hpp index 0c67cccad..a32150488 100755 --- a/include/libtorrent/torrent_handle.hpp +++ b/include/libtorrent/torrent_handle.hpp @@ -230,7 +230,11 @@ namespace libtorrent void filter_pieces(std::vector const& pieces); bool is_piece_filtered(int index) const; std::vector filtered_pieces() const; - + + //idea from Arvid and MooPolice + //todo refactoring and improving the function body + void filter_file(int index, bool filter); + // set the interface to bind outgoing connections // to. void use_interface(const char* net_interface); diff --git a/include/libtorrent/torrent_info.hpp b/include/libtorrent/torrent_info.hpp index 92fe1d089..316d2f5f2 100755 --- a/include/libtorrent/torrent_info.hpp +++ b/include/libtorrent/torrent_info.hpp @@ -113,7 +113,7 @@ namespace libtorrent { assert(m_piece_length > 0); return (int)m_files.size(); } const file_entry& file_at(int index) const { assert(index >= 0 && index < (int)m_files.size()); return m_files[index]; } - + const std::vector& trackers() const { return m_urls; } size_type total_size() const { assert(m_piece_length > 0); return m_total_size; }