forked from premiere/premiere-libtorrent
fix documentation bugs
This commit is contained in:
parent
daee339ac2
commit
f03cefceb6
|
@ -273,14 +273,13 @@ namespace libtorrent
|
|||
flag_stop_when_ready = 0x4000,
|
||||
|
||||
// internal
|
||||
default_flags = flag_pinned | flag_update_subscribe
|
||||
| flag_auto_managed | flag_paused | flag_apply_ip_filter
|
||||
default_flags = flag_pinned | flag_update_subscribe | flag_auto_managed | flag_paused | flag_apply_ip_filter
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
, flag_ignore_flags = 0x80000000
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
// filled in by the constructor and should be left untouched. It is used
|
||||
// for forward binary compatibility.
|
||||
int version;
|
||||
|
|
|
@ -558,7 +558,7 @@ namespace libtorrent
|
|||
// torrent will *force stop* whenever it transitions from a
|
||||
// non-data-transferring state into a data-transferring state (referred to
|
||||
// as being ready to download or seed). This is useful for torrents that
|
||||
// should not start downloading or seeding yet, but what to be made ready
|
||||
// should not start downloading or seeding yet, but want to be made ready
|
||||
// to do so. A torrent may need to have its files checked for instance, so
|
||||
// it needs to be started and possibly queued for checking (auto-managed
|
||||
// and started) but as soon as it's done, it should be stopped.
|
||||
|
@ -725,11 +725,11 @@ namespace libtorrent
|
|||
// // if we don't get an alert within 10 seconds, abort
|
||||
// if (a == 0) break;
|
||||
//
|
||||
// std::vector<alert*> alerts;
|
||||
// std::vector<alert*> alerts;
|
||||
// ses.pop_alerts(&alerts);
|
||||
//
|
||||
// for (alert* i : alerts)
|
||||
// {
|
||||
// for (alert* i : alerts)
|
||||
// {
|
||||
// if (alert_cast<save_resume_data_failed_alert>(a))
|
||||
// {
|
||||
// process_alert(a);
|
||||
|
@ -746,14 +746,14 @@ namespace libtorrent
|
|||
//
|
||||
// torrent_handle h = rd->handle;
|
||||
// torrent_status st = h.status(torrent_handle::query_save_path
|
||||
// | torrent_handle::query_name);
|
||||
// | torrent_handle::query_name);
|
||||
// std::ofstream out((st.save_path
|
||||
// + "/" + st.name + ".fastresume").c_str()
|
||||
// , std::ios_base::binary);
|
||||
// out.unsetf(std::ios_base::skipws);
|
||||
// bencode(std::ostream_iterator<char>(out), *rd->resume_data);
|
||||
// --outstanding_resume_data;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//.. note::
|
||||
|
|
|
@ -79,6 +79,7 @@ namespace libtorrent
|
|||
// This torrent will wait for its turn.
|
||||
queued_for_checking,
|
||||
#else
|
||||
// internal
|
||||
unused_enum_for_backwards_compatibility,
|
||||
#endif
|
||||
|
||||
|
@ -125,6 +126,7 @@ namespace libtorrent
|
|||
#ifndef TORRENT_NO_DEPRECATE
|
||||
std::string error;
|
||||
#else
|
||||
// internal
|
||||
std::string _dummy_string_;
|
||||
#endif
|
||||
error_code errc;
|
||||
|
|
Loading…
Reference in New Issue