summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-16 21:07:35 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-16 21:07:35 +0000
commit7a75a09a624767a7ec12517157f7ba99e0544ec9 (patch)
tree655720086a5f86395f8556ef3846959c85496fca /src/torrent.c
parentde3dcd18a22c1522267df53f9b34a775289f7443 (diff)
issue 85
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;