diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-10-07 18:55:01 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-10-07 18:55:01 +0000 |
commit | 429b32fba6f5ad14db31fe2690974b57df858999 (patch) | |
tree | 54970bd752b8dcf957d4a2db09be5678b79f9af4 /src/torrent.h | |
parent | c3bd3ac55162a88b308a6f700aad88d26cbd5f29 (diff) |
make connect button a menu button with other profiles, also add a connection serial used to discard requests issued before a disconnect which get their callback invoked after a new one is established. add an experimental "repeater" flag on exec commands (eg. %{name}[, ]).
Diffstat (limited to 'src/torrent.h')
-rw-r--r-- | src/torrent.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/torrent.h b/src/torrent.h index 3d78962..01ebda9 100644 --- a/src/torrent.h +++ b/src/torrent.h @@ -37,8 +37,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_FLAG_DOWNLOADING_METADATA (1 << 13) +#define FILTER_FLAG_TRACKER (1 << 14) +#define FILTER_FLAG_DIR (1 << 15) #define TORRENT_ADD_FLAG_PAUSED (1 << 0) /* 0x01 */ #define TORRENT_ADD_FLAG_DELETE (1 << 1) /* 0x02 */ @@ -55,7 +56,7 @@ const gchar *torrent_get_download_dir(JsonObject * t); gint64 torrent_get_have_unchecked(JsonObject * t); gint64 torrent_get_have_valid(JsonObject * t); gint64 torrent_get_status(JsonObject * t); -gchar *torrent_get_status_string(gint64 rpcv, gint64 value); +gchar *torrent_get_status_string(gint64 rpcv, gint64 value, guint flags); gchar *torrent_get_status_icon(gint64 rpcv, guint flags); guint32 torrent_get_flags(JsonObject * t, gint64 rpcv, gint64 status, gint64 downRate, gint64 upRate); JsonArray *torrent_get_peers(JsonObject * t); @@ -89,6 +90,7 @@ gint64 torrent_get_queue_position(JsonObject *args); gint64 torrent_get_activity_date(JsonObject *t); gchar *torrent_get_full_dir(JsonObject * obj); gchar *torrent_get_full_path(JsonObject *obj); +gdouble torrent_get_metadata_percent_complete(JsonObject *t); /* outer response object */ |