summaryrefslogtreecommitdiff
path: root/src/torrent.c
diff options
context:
space:
mode:
authorGravatar Alan F <ajf8@users.noreply.github.com>2016-05-13 14:44:24 +0100
committerGravatar Alan F <ajf8@users.noreply.github.com>2016-05-13 14:44:24 +0100
commit3689dda548af18b43c65892b2520a9943bd0dbd7 (patch)
tree9bb3c9499080a9452713f48cbc2616c1211e53c7 /src/torrent.c
parent8fab1a38681901c3e38ca96d5b3f7ff1516e0c0e (diff)
parentdf494abb4f46db333808b39c2651fbfee5e78cbb (diff)
Merge pull request #24 from DriverXX/master
GUI improvements
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 fc4eaa8..e5577ee 100644
--- a/src/torrent.c
+++ b/src/torrent.c
@@ -180,6 +180,11 @@ gint64 torrent_get_uploaded(JsonObject * t)
return json_object_get_int_member(t, FIELD_UPLOADEDEVER);
}
+gint64 torrent_get_corrupted(JsonObject * t)
+{
+ return json_object_get_int_member(t, FIELD_CORRUPTEVER);
+}
+
gint64 torrent_get_have_valid(JsonObject * t)
{
return json_object_get_int_member(t, FIELD_HAVEVALID);