diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-03-06 18:57:53 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-03-06 18:57:53 +0000 |
commit | 096eb60b18190d37159bbdddc74053861ae3312a (patch) | |
tree | 6cfa343f5530281e2760cefa653ac035b467c6b4 /src/requests.c | |
parent | 9eb10ca5994869dc933989430686d83b6720b330 (diff) |
TRG_NOUNIQUE environment env for starting more than one instance. fix start url paused. stop timers being activated by interactive actions. and... experimental speed graph!
Diffstat (limited to 'src/requests.c')
-rw-r--r-- | src/requests.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/requests.c b/src/requests.c index ceba326..99bdd75 100644 --- a/src/requests.c +++ b/src/requests.c @@ -80,7 +80,7 @@ JsonNode *torrent_pause(JsonArray * array) return generic_request(METHOD_TORRENT_STOP, array); } -JsonNode *torrent_reannounce(JsonArray *array) +JsonNode *torrent_reannounce(JsonArray * array) { return generic_request(METHOD_TORRENT_REANNOUNCE, array); } @@ -155,11 +155,12 @@ JsonNode *torrent_get(void) return root; } -JsonNode *torrent_add_url(const gchar * url, gboolean paused G_GNUC_UNUSED) +JsonNode *torrent_add_url(const gchar * url, gboolean paused) { JsonNode *root = base_request(METHOD_TORRENT_ADD); JsonObject *args = node_get_arguments(root); json_object_set_string_member(args, PARAM_FILENAME, url); + json_object_set_boolean_member(args, PARAM_PAUSED, paused); return root; } |