summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-09 09:48:03 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-09 09:48:03 +0000
commit690067ae5d628cc4ed46826c70ca42a004a24e18 (patch)
treec99ddcd448a5f600fa7f4f527e2b265498bedfdc /src/torrent.c
parent3757c78e835d01bddf89675e1c60a77020543338 (diff)
added column
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 f56c2bc..3c6f0d4 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -61,6 +61,11 @@ const gchar *torrent_get_name(JsonObject * t)
return json_object_get_string_member(t, FIELD_NAME);
}
+gint64 torrent_get_added_date(JsonObject *t)
+{
+ return json_object_get_int_member(t, FIELD_ADDED_DATE);
+}
+
gboolean torrent_get_honors_session_limits(JsonObject * t)
{
return json_object_get_boolean_member(t, FIELD_HONORS_SESSION_LIMITS);