summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
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);