refactor: add tr_torrent::fileCount() (#2273)

Provide an accessor to get a torrent's file count.

This is an incremental step towards making tr_torrent's impl private.
This commit is contained in:
Charles Kerr
2021-12-06 15:26:04 -06:00
committed by GitHub
parent e2be142ad6
commit 867a131e1d
7 changed files with 69 additions and 63 deletions

View File

@@ -73,7 +73,7 @@ public:
have.setHasAll();
tr_peerUpdateProgress(tor, this);
file_urls.resize(tr_torrentInfo(tor)->fileCount);
file_urls.resize(tor->fileCount());
timer = evtimer_new(session->event_base, webseed_timer_func, this);
tr_timerAddMsec(timer, TR_IDLE_TIMER_MSEC);