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 e5577ee..8e5422f 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -108,6 +108,11 @@ gint64 torrent_get_bandwidth_priority(JsonObject * t)
return json_object_get_int_member(t, FIELD_BANDWIDTH_PRIORITY);
}
+const gchar *torrent_get_magnetlink(JsonObject * t)
+{
+ return json_object_get_string_member(t, FIELD_MAGNETLINK);
+}
+
gint64 torrent_get_upload_limit(JsonObject * t)
{
return json_object_get_int_member(t, FIELD_UPLOAD_LIMIT);