diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-02-17 09:45:23 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-02-17 09:45:23 +0000 |
commit | 973aaa9d9a020e1644ce2fe45fd3613422f6ada9 (patch) | |
tree | c12c0ecfe8e9f890b7414287cd62e5085fcf0a7d /src/torrent.c | |
parent | c10b672d05b8b6b68bbc1ccb92da8b5caa451c68 (diff) |
a bunch of changes needed to facilitate changing trackers (unfinished). also tidy up general details panel a bit, fix a crash if a stats update is received after stats dialog is closed.
Diffstat (limited to 'src/torrent.c')
-rw-r--r-- | src/torrent.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/torrent.c b/src/torrent.c index 9ecb354..d6fcde2 100644 --- a/src/torrent.c +++ b/src/torrent.c @@ -208,6 +208,11 @@ gchar *torrent_get_status_string(gint64 value) } } +gint64 tracker_get_id(JsonObject *t) +{ + return json_object_get_int_member(t, FIELD_ID); +} + gint64 tracker_get_tier(JsonObject * t) { return json_object_get_int_member(t, FIELD_TIER); |