summaryrefslogtreecommitdiff
path: root/src/torrent.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-08 17:12:05 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-08 17:12:05 +0000
commitf930813dd818ddbd88374f89394d68d485b4d1e7 (patch)
tree3ee6a9803b509a542d6a1653fb47dbfe2860c032 /src/torrent.h
parent579d63656354be1e92e0625136c46d24192d826a (diff)
move {tpeer,tfile},{c,h} into torrent.{c,h}
Diffstat (limited to 'src/torrent.h')
-rw-r--r--src/torrent.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/torrent.h b/src/torrent.h
index 01ebda9..fd6cc19 100644
--- a/src/torrent.h
+++ b/src/torrent.h
@@ -111,4 +111,30 @@ gint64 tracker_stats_get_download_count(JsonObject *t);
const gchar *tracker_stats_get_announce_result(JsonObject *t);
const gchar *tracker_stats_get_host(JsonObject *t);
+/* files */
+
+gint64 file_get_length(JsonObject * f);
+gint64 file_get_bytes_completed(JsonObject * f);
+const gchar *file_get_name(JsonObject * f);
+gdouble file_get_progress(JsonObject * f);
+
+/* peers */
+
+const gchar *peer_get_address(JsonObject * p);
+const gchar *peer_get_client_name(JsonObject * p);
+gboolean peer_get_is_encrypted(JsonObject * p);
+gdouble peer_get_progress(JsonObject * p);
+const gchar *peer_get_flagstr(JsonObject * p);
+gint64 peer_get_rate_to_client(JsonObject * p);
+gint64 peer_get_rate_to_peer(JsonObject * p);
+gboolean peer_get_is_uploading_to(JsonObject * p);
+gboolean peer_get_is_downloading_from(JsonObject * p);
+
+gint64 peerfrom_get_pex(JsonObject *pf);
+gint64 peerfrom_get_dht(JsonObject *pf);
+gint64 peerfrom_get_trackers(JsonObject *pf);
+gint64 peerfrom_get_ltep(JsonObject *pf);
+gint64 peerfrom_get_resume(JsonObject *pf);
+gint64 peerfrom_get_incoming(JsonObject *pf);
+gint64 peerfrom_get_lpd(JsonObject *pf);
#endif /* TORRENT_H_ */