deprecated flag should not affect ABI

This commit is contained in:
Arvid Norberg 2014-11-26 10:17:44 +00:00
parent edade10561
commit f73fe335e2
2 changed files with 13 additions and 3 deletions

View File

@ -1622,11 +1622,17 @@ namespace libtorrent
#ifndef TORRENT_NO_DEPRECATE
upload_dht_protocol,
upload_tracker_protocol,
#else
deprecated1,
deprecated2,
#endif
download_ip_protocol,
#ifndef TORRENT_NO_DEPRECATE
download_dht_protocol,
download_tracker_protocol,
#else
deprecated3,
deprecated4,
#endif
num_channels
};

View File

@ -398,14 +398,18 @@ namespace libtorrent {
transferred[download_payload] = s[download_payload].counter();
transferred[download_protocol] = s[download_protocol].counter();
transferred[upload_ip_protocol] = s[upload_ip_protocol].counter();
transferred[download_ip_protocol] = s[download_ip_protocol].counter();
#ifndef TORRENT_NO_DEPRECATE
transferred[upload_dht_protocol] = 0;
transferred[upload_tracker_protocol] = 0;
#endif
transferred[download_ip_protocol] = s[download_ip_protocol].counter();
#ifndef TORRENT_NO_DEPRECATE
transferred[download_dht_protocol] = 0;
transferred[download_tracker_protocol] = 0;
#else
transferred[deprecated1] = 0;
transferred[deprecated2] = 0;
transferred[deprecated3] = 0;
transferred[deprecated4] = 0;
#endif
}