summaryrefslogtreecommitdiff
path: root/src/torrent.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-08-31 13:34:00 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-08-31 13:34:00 +0000
commit8eef0e7576d67d14efe305ba4d73cee374c57220 (patch)
tree8b91467113da91d39c67217514ae530538cfd3ac /src/torrent.h
parent7bf25fa4ac9b91d8249a3e43e35f4e11e28c1ef4 (diff)
switch from using the trackers struct to trackerstats - and add some of the new columns into the trackers model and treeview
Diffstat (limited to 'src/torrent.h')
-rw-r--r--src/torrent.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/torrent.h b/src/torrent.h
index 77a3004..775b305 100644
--- a/src/torrent.h
+++ b/src/torrent.h
@@ -52,14 +52,10 @@ gint64 torrent_get_status(JsonObject * t);
gchar *torrent_get_status_string(gint64 value);
gchar *torrent_get_status_icon(guint flags);
JsonArray *torrent_get_peers(JsonObject * t);
-JsonArray *torrent_get_trackers(JsonObject * t);
+JsonArray *torrent_get_tracker_stats(JsonObject * t);
JsonArray *torrent_get_wanted(JsonObject * t);
JsonArray *torrent_get_priorities(JsonObject * t);
gint64 torrent_get_id(JsonObject * t);
-gint64 tracker_get_tier(JsonObject * t);
-gint64 tracker_get_id(JsonObject * t);
-const gchar *tracker_get_announce(JsonObject * t);
-const gchar *tracker_get_scrape(JsonObject * t);
JsonArray *torrent_get_files(JsonObject * args);
gdouble torrent_get_percent_done(JsonObject * t);
gint64 torrent_get_left_until_done(JsonObject * t);
@@ -77,7 +73,22 @@ gint64 torrent_get_seed_ratio_mode(JsonObject * t);
gint64 torrent_get_peer_limit(JsonObject * t);
gboolean torrent_has_tracker(JsonObject * t, GRegex * rx, gchar * search);
+/* outer response object */
+
JsonArray *get_torrents(JsonObject * response);
JsonArray *get_torrents_removed(JsonObject * response);
+/* tracker stats */
+
+const gchar *tracker_stats_get_announce(JsonObject * t);
+const gchar *tracker_stats_get_scrape(JsonObject * t);
+gint64 tracker_stats_get_tier(JsonObject * t);
+gint64 tracker_stats_get_id(JsonObject * t);
+gint64 tracker_stats_get_last_announce_peer_count(JsonObject *t);
+gint64 tracker_stats_get_last_announce_time(JsonObject *t);
+gint64 tracker_stats_get_seeder_count(JsonObject *t);
+gint64 tracker_stats_get_leecher_count(JsonObject *t);
+const gchar *tracker_stats_get_announce_result(JsonObject *t);
+const gchar *tracker_stats_get_host(JsonObject *t);
+
#endif /* TORRENT_H_ */