* Moved defininiton of priority enum to torrent/common.h.

* Properly return the size of the Block.

* Bumped to 0.10.0/0.6.0.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@711 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-06-04 20:53:04 +00:00
parent 18cd5342df
commit 46dd41e956
4 changed files with 24 additions and 24 deletions
+8 -8
View File
@@ -150,17 +150,17 @@ ElementFileList::next_priority(Priority p) {
// Ahh... do +1 modulo.
switch(p) {
case torrent::File::OFF:
return torrent::File::HIGH;
case torrent::PRIORITY_OFF:
return torrent::PRIORITY_HIGH;
case torrent::File::NORMAL:
return torrent::File::OFF;
case torrent::PRIORITY_NORMAL:
return torrent::PRIORITY_OFF;
case torrent::File::HIGH:
return torrent::File::NORMAL;
case torrent::PRIORITY_HIGH:
return torrent::PRIORITY_NORMAL;
default:
return torrent::File::NORMAL;
return torrent::PRIORITY_NORMAL;
};
}