summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-30 18:54:29 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-11-30 18:54:29 +0000
commit7bc8fe632f29a875659f223ad1e9aa035c56f46c (patch)
tree8a13af1000337feade93762295b213283b03d089 /src/torrent.c
parent6df6b7c2a2383d01a6fc20e597f48b0168ccfeb5 (diff)
add some comments at the top of some files, also add a timeout of 20 seconds for curl requests
Diffstat (limited to 'src/torrent.c')
-rw-r--r--src/torrent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/torrent.c b/src/torrent.c
index c26defc..10f2dde 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -27,6 +27,8 @@
#include "protocol-constants.h"
#include "util.h"
+/* Just some functions to get fields out of the torrent object. */
+
JsonArray *torrent_get_peers(JsonObject * t)
{
g_assert(json_object_get_array_member(t, FIELD_PEERS));