landed the bdecode branch in master. lazy_bdecode/lazy_entry is now being replaced by bdecode/bdecode_node

This commit is contained in:
Arvid Norberg
2015-03-12 05:20:12 +00:00
parent c1dc982f4f
commit 6c1df7eb55
72 changed files with 4039 additions and 1144 deletions

View File

@@ -72,12 +72,16 @@ struct test_storage_impl : storage_interface
}
virtual bool has_any_file(storage_error& ec) { return false; }
virtual void set_file_priority(std::vector<boost::uint8_t> const& prio, storage_error& ec) {}
virtual int move_storage(std::string const& save_path, int flags, storage_error& ec) { return 0; }
virtual bool verify_resume_data(lazy_entry const& rd, storage_error& ec) { return true; }
virtual void set_file_priority(std::vector<boost::uint8_t> const& prio
, storage_error& ec) {}
virtual int move_storage(std::string const& save_path, int flags, storage_error& ec)
{ return 0; }
virtual bool verify_resume_data(bdecode_node const& rd, storage_error& ec)
{ return true; }
virtual void write_resume_data(entry& rd, storage_error& ec) const {}
virtual void release_files(storage_error& ec) {}
virtual void rename_file(int index, std::string const& new_filenamem, storage_error& ec) {}
virtual void rename_file(int index, std::string const& new_filenamem
, storage_error& ec) {}
virtual void delete_files(storage_error& ec) {}
virtual void finalize_file(int, storage_error&) {}
};