mirror of
https://github.com/transmission/transmission.git
synced 2025-12-23 03:48:41 +00:00
(trunk) minor transmission.h API cleanup.
1. remove tr_sessionGetActiveTorrentCount() 2. make tr_sessionCountTorrents() package-visible instead of public. 3. make tr_torrentGetActivity() private instead of public.
This commit is contained in:
@@ -173,7 +173,7 @@ getTorrents( tr_session * session,
|
||||
else /* all of them */
|
||||
{
|
||||
tr_torrent * tor = NULL;
|
||||
const int n = tr_sessionCountTorrents( session );
|
||||
const int n = tr_sessionCountTorrents( session );
|
||||
torrents = tr_new0( tr_torrent *, n );
|
||||
while( ( tor = tr_torrentNext( session, tor ) ) )
|
||||
torrents[torrentCount++] = tor;
|
||||
|
||||
Reference in New Issue
Block a user