* Added ^E for setting 'create/resize queued' on files in a torrent.

* Minor cleanup of the API.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1030 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-01-22 15:50:48 +00:00
parent c19af8f389
commit 728c6ac9bd
7 changed files with 78 additions and 51 deletions
+5
View File
@@ -371,6 +371,7 @@ print_object(char* first, char* last, const torrent::Object* src, int flags) {
return first;
}
}
case torrent::Object::TYPE_VALUE:
return std::max(first + snprintf(first, std::distance(first, last), "%lli", src->as_value()), last);
@@ -384,6 +385,8 @@ print_object(char* first, char* last, const torrent::Object* src, int flags) {
return first;
case torrent::Object::TYPE_NONE:
return first;
default:
throw torrent::input_error("Invalid type.");
}
@@ -421,6 +424,8 @@ print_object_std(std::string* dest, const torrent::Object* src, int flags) {
return;
case torrent::Object::TYPE_NONE:
return;
default:
throw torrent::input_error("Invalid type.");
}