mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 19:52:31 +00:00
* 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:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user