fixes #90. adds compact_mode to torrent_status

This commit is contained in:
Arvid Norberg 2007-07-23 04:36:56 +00:00
parent f7fb6778a6
commit f89ce2669f
2 changed files with 7 additions and 0 deletions

View File

@ -105,6 +105,7 @@ namespace libtorrent
, num_connections(0)
, uploads_limit(0)
, connections_limit(0)
, compact_mode(false)
{}
enum state_t
@ -211,6 +212,10 @@ namespace libtorrent
int num_connections;
int uploads_limit;
int connections_limit;
// true if the torrent is saved in compact mode
// false if it is saved in full allocation mode
bool compact_mode;
};
struct TORRENT_EXPORT block_info

View File

@ -2713,6 +2713,8 @@ namespace libtorrent
!boost::bind(&peer_connection::is_connecting
, boost::bind(&std::map<tcp::endpoint,peer_connection*>::value_type::second, _1)));
st.compact_mode = m_compact_mode;
st.num_complete = m_complete;
st.num_incomplete = m_incomplete;
st.paused = m_paused;