From 2b0197e81093448afd9c24e8dff8670bd2a446a3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 25 Aug 2007 18:26:43 +0000 Subject: [PATCH] initial fix to enable mapping files in torrents to other files on disk. see torrent_info::remap_files --- docs/manual.html | 303 ++++++++++++++++------------ docs/manual.rst | 93 ++++++--- include/libtorrent/torrent_info.hpp | 78 ++++++- src/storage.cpp | 44 ++-- src/torrent_info.cpp | 37 +++- test/test_storage.cpp | 21 ++ 6 files changed, 388 insertions(+), 188 deletions(-) diff --git a/docs/manual.html b/docs/manual.html index 0a7316655..8421f973c 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -58,122 +58,123 @@
  • torrent_info()
  • set_comment() set_piece_size() set_creator() set_hash() add_tracker() add_file()
  • create_torrent()
  • -
  • begin_files() end_files() rbegin_files() rend_files()
  • -
  • num_files() file_at()
  • -
  • map_block()
  • -
  • map_file()
  • -
  • url_seeds() add_url_seed()
  • -
  • print()
  • -
  • trackers()
  • -
  • total_size() piece_length() piece_size() num_pieces()
  • -
  • hash_for_piece() info_hash()
  • -
  • name() comment() creation_date() creator()
  • -
  • priv() set_priv()
  • -
  • nodes()
  • -
  • add_node()
  • +
  • remap_files()
  • +
  • begin_files() end_files() rbegin_files() rend_files()
  • +
  • num_files() file_at()
  • +
  • map_block()
  • +
  • map_file()
  • +
  • url_seeds() add_url_seed()
  • +
  • print()
  • +
  • trackers()
  • +
  • total_size() piece_length() piece_size() num_pieces()
  • +
  • hash_for_piece() info_hash()
  • +
  • name() comment() creation_date() creator()
  • +
  • priv() set_priv()
  • +
  • nodes()
  • +
  • add_node()
  • -
  • torrent_handle