summaryrefslogtreecommitdiff
path: root/src/torrent.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-11 21:44:28 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-11 21:44:28 +0000
commit2aacfd5e691a7c8b37c2fc1dbcf001615c205b97 (patch)
treeb594b99f18040d95a7c1b2325f76fc20ebd46e81 /src/torrent.h
parent70bf14ea3eade947baf6fab49541f3b19c4db099 (diff)
show progress in percent done column
Diffstat (limited to 'src/torrent.h')
-rw-r--r--src/torrent.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/torrent.h b/src/torrent.h
index 2e3ca16..03e3b7c 100644
--- a/src/torrent.h
+++ b/src/torrent.h
@@ -24,20 +24,21 @@
#include "trg-client.h"
-#define TORRENT_FLAG_ERROR (1 << 0) /* 0x01 */
-#define TORRENT_FLAG_COMPLETE (1 << 1) /* 0x02 */
-#define TORRENT_FLAG_INCOMPLETE (1 << 2) /* 0x04 */
-#define TORRENT_FLAG_SEEDING (1 << 3) /* 0x08 */
-#define TORRENT_FLAG_SEEDING_WAIT (1 << 4) /* 0x16 */
-#define TORRENT_FLAG_CHECKING (1 << 5) /* 0x32 */
-#define TORRENT_FLAG_WAITING_CHECK (1 << 6) /* 0x64 */
-#define TORRENT_FLAG_DOWNLOADING (1 << 7) /* 0x128 */
-#define TORRENT_FLAG_DOWNLOADING_WAIT (1 << 8) /* 0x256 */
-#define TORRENT_FLAG_PAUSED (1 << 10) /* 0x512 */
-#define TORRENT_FLAG_QUEUED (1 << 11) /* 0x1024 */
-#define TORRENT_FLAG_ACTIVE (1 << 12) /* 0x2048 */
-#define FILTER_FLAG_TRACKER (1 << 13) /* 0x4096 */
-#define FILTER_FLAG_DIR (1 << 14) /* 0x8192 */
+#define TORRENT_FLAG_ERROR (1 << 0)
+#define TORRENT_FLAG_COMPLETE (1 << 1)
+#define TORRENT_FLAG_INCOMPLETE (1 << 2)
+#define TORRENT_FLAG_SEEDING (1 << 3)
+#define TORRENT_FLAG_SEEDING_WAIT (1 << 4)
+#define TORRENT_FLAG_CHECKING (1 << 5)
+#define TORRENT_FLAG_WAITING_CHECK (1 << 6)
+#define TORRENT_FLAG_CHECKING_ANY (1 << 7)
+#define TORRENT_FLAG_DOWNLOADING (1 << 8)
+#define TORRENT_FLAG_DOWNLOADING_WAIT (1 << 9)
+#define TORRENT_FLAG_PAUSED (1 << 10)
+#define TORRENT_FLAG_QUEUED (1 << 11)
+#define TORRENT_FLAG_ACTIVE (1 << 12)
+#define FILTER_FLAG_TRACKER (1 << 13)
+#define FILTER_FLAG_DIR (1 << 14)
#define TORRENT_ADD_FLAG_PAUSED (1 << 0) /* 0x01 */
#define TORRENT_ADD_FLAG_DELETE (1 << 1) /* 0x02 */
@@ -68,6 +69,7 @@ gint64 torrent_get_peers_getting_from_us(JsonObject *args);
gint64 torrent_get_peers_sending_to_us(JsonObject *args);
gint64 torrent_get_peers_connected(JsonObject *args);
gdouble torrent_get_percent_done(JsonObject * t);
+gdouble torrent_get_recheck_progress(JsonObject * t);
gint64 torrent_get_left_until_done(JsonObject * t);
gboolean torrent_get_is_finished(JsonObject * t);
gboolean torrent_get_honors_session_limits(JsonObject * t);