mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 12:42:31 +00:00
* Added 'argument.?' commands that passing of arguments to commands
created with 'system.method.insert'. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1077 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -148,4 +148,22 @@ CommandVariable::get_string(Command* rawCommand, cleaned_type target, const torr
|
||||
return variable->m_variable;
|
||||
}
|
||||
|
||||
//
|
||||
// ObjectPtr
|
||||
//
|
||||
|
||||
const torrent::Object
|
||||
CommandObjectPtr::set_generic(Command* rawCommand, cleaned_type target, const torrent::Object& rawArgs) {
|
||||
CommandObjectPtr* command = static_cast<CommandObjectPtr*>(rawCommand);
|
||||
|
||||
return (*command->m_object = rawArgs);
|
||||
}
|
||||
|
||||
const torrent::Object
|
||||
CommandObjectPtr::get_generic(Command* rawCommand, cleaned_type target, const torrent::Object& args) {
|
||||
CommandObjectPtr* command = static_cast<CommandObjectPtr*>(rawCommand);
|
||||
|
||||
return *command->m_object;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user