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 4f8cdaa..784668f 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -177,6 +177,11 @@ gdouble torrent_get_recheck_progress(JsonObject * t)
return json_double_to_progress(json_object_get_member(t, FIELD_RECHECK_PROGRESS));
}
+gint64 torrent_get_activity_date(JsonObject *t)
+{
+ return json_object_get_int_member(t, FIELD_ACTIVITY_DATE);
+}
+
guint32 torrent_get_flags(JsonObject * t, gint64 rpcv, gint64 status, gint64 downRate, gint64 upRate)
{
guint32 flags = 0;