summaryrefslogtreecommitdiff
path: root/src/requests.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-16 23:41:56 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-16 23:41:56 +0000
commit2743f8edc3b22deb7a5cd34760faef137fbf4fdc (patch)
tree5ab296a8f08945d24c364a9e99f3aa6299db56f7 /src/requests.h
parent2515c70aec58814f32fc7e22ab9dfa90fcd934e6 (diff)
updating a torrents file or trackers doesn't make it recently active, so these changes could get missed if doing active only updates. for these: send the torrent id as the request tag, which Transmission passes back, then we request an update just for that torrent.
Diffstat (limited to 'src/requests.h')
-rw-r--r--src/requests.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/requests.h b/src/requests.h
index b87cf3f..8c1bc00 100644
--- a/src/requests.h
+++ b/src/requests.h
@@ -27,7 +27,7 @@ JsonNode *generic_request(gchar * method, JsonArray * array);
JsonNode *session_set(void);
JsonNode *session_get(void);
-JsonNode *torrent_get(gboolean recent);
+JsonNode *torrent_get(gint64 id);
JsonNode *torrent_set(JsonArray * array);
JsonNode *torrent_pause(JsonArray * array);
JsonNode *torrent_start(JsonArray * array);
@@ -41,5 +41,6 @@ JsonNode *torrent_set_location(JsonArray * array, gchar * location,
JsonNode *blocklist_update(void);
JsonNode *port_test(void);
JsonNode *session_stats(void);
+void request_set_tag(JsonNode * req, gint64 tag);
#endif /* REQUESTS_H_ */