summaryrefslogtreecommitdiff
path: root/src/trg-torrent-model.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-12 10:54:29 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-12 10:54:29 +0000
commit42eddac0e9f0216175fef223fd9b1023ed502a6e (patch)
tree7fd853c8fdabc678bc1df0f4eb5160420347ac8e /src/trg-torrent-model.h
parentf4a194f08d0c48641f5394cd07be61931a432241 (diff)
some quite significant changes to only receive/update recently-active torrents, if enabled. also use a hash table and tree row references for lookup. hopefully performance will be much better for people with large number of torrents.
Diffstat (limited to 'src/trg-torrent-model.h')
-rw-r--r--src/trg-torrent-model.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trg-torrent-model.h b/src/trg-torrent-model.h
index eb58449..2f9b99a 100644
--- a/src/trg-torrent-model.h
+++ b/src/trg-torrent-model.h
@@ -73,7 +73,10 @@ find_existing_peer_item(GtkListStore * model, JsonObject * p,
void trg_torrent_model_update(TrgTorrentModel * model, trg_client * tc,
JsonObject * response,
trg_torrent_model_update_stats * stats,
- gboolean first);
+ gint mode);
+
+void trg_torrent_model_stats_scan(TrgTorrentModel *model, trg_torrent_model_update_stats *stats);
+GHashTable *get_torrent_table(TrgTorrentModel *model);
enum {
TORRENT_COLUMN_ICON,