Hello.
I have one small thing to clarify. In the past I have written a small
patch for rtorrent and it has worked as expected, up to version 0.8.6
(included).
This is what I have used:
ADD_VARIABLE_VALUE("foo1", -1);
if ((foo1 = rpc::call_command_value("get_foo1")) > 0)
And in "rtorrent.rc" I had:
foo = 5
For version 0.8.7 this has changed, and now I use:
CMD2_VAR_VALUE ("foo1", -1);
if ((foo1 = rpc::call_command_value("foo1")) > 0) {
If I use this in "rtorrent.rc":
foo = 5
it no longer works. After some experimenting I added these two lines:
CMD2_REDIRECT ("get_foo1", "foo1");
CMD2_REDIRECT_GENERIC("set_foo1", "foo1.set");
Now I have to set it like so in "rtorrent.rc":
set_foo = 5
Is this expected or am I doing something wrong? If I have only
CMD2_VAR_VALUE line, then rtorrent does recognize the "foo = 5" setting in
the config file, but rpc::call_command_value() does not return the value
as set there (it always returns -1).
Regards,
Goran
_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel