mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 21:22:31 +00:00
* Allow inlining functions in commands with parantheses, e.g:
print = (convert.time,(system.time)) schedule2 = test_print_2,2,2,((print,"current ",((convert.time,((system.time)))))) Multiple parantheses need to be used in schedule to ensure the command doesn't get evaluated at the time of calling schedule. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1191 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -42,6 +42,10 @@
|
||||
#include <inttypes.h>
|
||||
#include <rak/functional_fun.h>
|
||||
|
||||
namespace torrent {
|
||||
class Object;
|
||||
}
|
||||
|
||||
namespace rpc {
|
||||
|
||||
class CommandSchedulerItem;
|
||||
@@ -71,7 +75,8 @@ public:
|
||||
void erase(iterator itr);
|
||||
void erase_str(const std::string& key) { erase(find(key)); }
|
||||
|
||||
void parse(const std::string& key, const std::string& bufAbsolute, const std::string& bufInterval, const std::string& command);
|
||||
void parse(const std::string& key, const std::string& bufAbsolute,
|
||||
const std::string& bufInterval, const torrent::Object& command);
|
||||
|
||||
static uint32_t parse_absolute(const char* str);
|
||||
static uint32_t parse_interval(const char* str);
|
||||
|
||||
Reference in New Issue
Block a user