changed torrent::set_metadata() to reduce code duplication in metadata extensions. Exposed torrent_handle::set_metadata() to the public interface

This commit is contained in:
Arvid Norberg
2008-09-24 02:32:33 +00:00
parent df5e261ce8
commit 80e9e8d1cf
7 changed files with 57 additions and 62 deletions

View File

@@ -638,7 +638,7 @@ namespace libtorrent
// to the checker thread for initial checking
// of the storage.
// a return value of false indicates an error
bool set_metadata(lazy_entry const& metadata, std::string& error);
bool set_metadata(char const* metadata_buf, int metadata_size);
int sequence_number() const { return m_sequence_number; }

View File

@@ -341,6 +341,7 @@ namespace libtorrent
#endif
bool has_metadata() const;
bool set_metadata(char const* metadata, int size) const;
const torrent_info& get_torrent_info() const;
bool is_valid() const;