diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-02-13 13:21:48 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-02-13 13:21:48 +0000 |
commit | 009ef4d4a37ca136c6bd1071fc980c4f164badd9 (patch) | |
tree | a5eaacc4ece039a3b9db8740a18c9397a0402759 /src/requests.c | |
parent | 0cf859ff090d670eef1a7f184ad974db6a953ccc (diff) |
move functionality, refresh static function prototypes in main-window, add/remove status icon without restart
Diffstat (limited to 'src/requests.c')
-rw-r--r-- | src/requests.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/requests.c b/src/requests.c index 7448e96..3858dd7 100644 --- a/src/requests.c +++ b/src/requests.c @@ -45,6 +45,15 @@ JsonNode *session_get() return generic_request(METHOD_SESSION_GET, NULL); } +JsonNode *torrent_set_location(JsonArray *array, gchar *location, gboolean move) +{ + JsonNode *req = generic_request(METHOD_TORRENT_SET_LOCATION, array); + JsonObject *args = node_get_arguments(req); + json_object_set_boolean_member(args, FIELD_MOVE, move); + json_object_set_string_member(args, FIELD_LOCATION, location); + return req; +} + JsonNode *torrent_start(JsonArray * array) { return generic_request(METHOD_TORRENT_START, array); |