pack add_torrent_params

This commit is contained in:
Arvid Norberg
2013-11-26 04:14:29 +00:00
parent d03d50b6a8
commit e92444dc7f

View File

@@ -250,7 +250,6 @@ namespace libtorrent
// a list of hostname and port pairs, representing DHT nodes to be // a list of hostname and port pairs, representing DHT nodes to be
// added to the session (if DHT is enabled). The hostname may be an IP address. // added to the session (if DHT is enabled). The hostname may be an IP address.
std::vector<std::pair<std::string, int> > dht_nodes; std::vector<std::pair<std::string, int> > dht_nodes;
sha1_hash info_hash;
std::string name; std::string name;
std::string save_path; std::string save_path;
@@ -278,6 +277,15 @@ namespace libtorrent
// a torrent. The semantics are the same as for ``torrent_handle::prioritize_files()``. // a torrent. The semantics are the same as for ``torrent_handle::prioritize_files()``.
std::vector<boost::uint8_t> file_priorities; std::vector<boost::uint8_t> file_priorities;
// torrent extension construction functions can be added to this
// vector to have them be added immediately when the torrent is
// constructed. This may be desired over the torrent_handle::add_extension()
// in order to avoid race conditions. For instance it may be important
// to have the plugin catch events that happen very early on after
// the torrent is created.
std::vector<boost::function<boost::shared_ptr<torrent_plugin>(torrent*, void*)> >
extensions;
// the default tracker id to be used when announcing to trackers. By default // the default tracker id to be used when announcing to trackers. By default
// this is empty, and no tracker ID is used, since this is an optional argument. If // this is empty, and no tracker ID is used, since this is an optional argument. If
// a tracker returns a tracker ID, that ID is used instead of this. // a tracker returns a tracker ID, that ID is used instead of this.
@@ -308,17 +316,7 @@ namespace libtorrent
// flags controlling aspects of this torrent and how it's added. See flags_t for details. // flags controlling aspects of this torrent and how it's added. See flags_t for details.
boost::uint64_t flags; boost::uint64_t flags;
#ifndef TORRENT_NO_DEPRECATE sha1_hash info_hash;
bool seed_mode;
bool override_resume_data;
bool upload_mode;
bool share_mode;
bool apply_ip_filter;
bool paused;
bool auto_managed;
bool duplicate_is_error;
bool merge_resume_trackers;
#endif
// ``max_uploads``, ``max_connections``, ``upload_limit``, ``download_limit`` correspond // ``max_uploads``, ``max_connections``, ``upload_limit``, ``download_limit`` correspond
// to the ``set_max_uploads()``, ``set_max_connections()``, ``set_upload_limit()`` and // to the ``set_max_uploads()``, ``set_max_connections()``, ``set_upload_limit()`` and
@@ -334,14 +332,18 @@ namespace libtorrent
int upload_limit; int upload_limit;
int download_limit; int download_limit;
// torrent extension construction functions can be added to this #ifndef TORRENT_NO_DEPRECATE
// vector to have them be added immediately when the torrent is bool seed_mode;
// constructed. This may be desired over the torrent_handle::add_extension() bool override_resume_data;
// in order to avoid race conditions. For instance it may be important bool upload_mode;
// to have the plugin catch events that happen very early on after bool share_mode;
// the torrent is created. bool apply_ip_filter;
std::vector<boost::function<boost::shared_ptr<torrent_plugin>(torrent*, void*)> > bool paused;
extensions; bool auto_managed;
bool duplicate_is_error;
bool merge_resume_trackers;
#endif
}; };
} }