summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-07 09:45:25 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-07 09:45:25 +0000
commit8d77cf1f3f90bad05ad97802febd3fe3c34391fc (patch)
tree444b5916f3b1eaede8017c873acaaa525ecebb86 /src/torrent.c
parent63a21ca01ccc921fa323dbfced2eb84bceef791a (diff)
issue 47 - add non-default column to display number of PEX and DHT peers to torrent treeview
Diffstat (limited to 'src/torrent.c')
-rw-r--r--src/torrent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/torrent.c b/src/torrent.c
index bdd6d75..98eb687 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -32,6 +32,11 @@ JsonArray *torrent_get_peers(JsonObject * t)
return json_object_get_array_member(t, FIELD_PEERS);
}
+JsonObject *torrent_get_peersfrom(JsonObject * t)
+{
+ return json_object_get_object_member(t, FIELD_PEERSFROM);
+}
+
JsonArray *torrent_get_wanted(JsonObject * t)
{
return json_object_get_array_member(t, FIELD_WANTED);