1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 06:00:41 +00:00

fix inactivity typo

This commit is contained in:
Mitchell Livingston 2010-07-23 11:02:57 +00:00
parent 59e8e02af2
commit feb6e6b785
5 changed files with 14 additions and 14 deletions

View file

@ -328,7 +328,7 @@ tr_torrentIsSeedRatioDone( tr_torrent * tor )
***/
void
tr_torrentSetInactiveMode( tr_torrent * tor, tr_inactvelimit mode )
tr_torrentSetInactiveMode( tr_torrent * tor, tr_inactivelimit mode )
{
assert( tr_isTorrent( tor ) );
assert( mode==TR_INACTIVELIMIT_GLOBAL || mode==TR_INACTIVELIMIT_SINGLE || mode==TR_INACTIVELIMIT_UNLIMITED );
@ -341,7 +341,7 @@ tr_torrentSetInactiveMode( tr_torrent * tor, tr_inactvelimit mode )
}
}
tr_ratiolimit
tr_inactivelimit
tr_torrentGetInactiveMode( const tr_torrent * tor )
{
assert( tr_isTorrent( tor ) );

View file

@ -259,7 +259,7 @@ struct tr_torrent
tr_ratiolimit ratioLimitMode;
uint64_t inactiveLimitMinutes;
tr_inactvelimit inactiveLimitMode;
tr_inactivelimit inactiveLimitMode;
uint64_t preVerifyTotal;
};

View file

@ -1178,20 +1178,20 @@ typedef enum
TR_INACTIVELIMIT_SINGLE = 1, /* override the global settings, seeding until a certain inactive time */
TR_INACTIVELIMIT_UNLIMITED = 2 /* override the global settings, seeding regardless of activity */
}
tr_inactvelimit;
tr_inactivelimit;
void tr_torrentSetInactiveMode( tr_torrent * tor,
tr_inactvelimit mode );
void tr_torrentSetInactiveMode( tr_torrent * tor,
tr_inactivelimit mode );
tr_ratiolimit tr_torrentGetInactiveMode( const tr_torrent * tor );
tr_inactivelimit tr_torrentGetInactiveMode( const tr_torrent * tor );
void tr_torrentSetInactiveLimit( tr_torrent * tor,
void tr_torrentSetInactiveLimit( tr_torrent * tor,
uint64_t inactiveMinutes );
uint64_t tr_torrentGetInactiveLimit( const tr_torrent * tor );
uint64_t tr_torrentGetInactiveLimit( const tr_torrent * tor );
tr_bool tr_torrentGetSeedInactive( const tr_torrent *, uint64_t * inactiveMinutes );
tr_bool tr_torrentGetSeedInactive( const tr_torrent *, uint64_t * inactiveMinutes );
/****
***** Peer Limits

View file

@ -98,8 +98,8 @@
- (BOOL) seedRatioSet;
- (CGFloat) progressStopRatio;
- (tr_inactvelimit) inactiveSetting;
- (void) setInactiveSetting: (tr_inactvelimit) setting;
- (tr_inactivelimit) inactiveSetting;
- (void) setInactiveSetting: (tr_inactivelimit) setting;
- (NSUInteger) inactiveLimitMinutes;
- (void) setInactiveLimitMinutes: (NSUInteger) limit;
- (BOOL) seedInactiveLimitSet;

View file

@ -393,12 +393,12 @@ int trashDataFile(const char * filename)
return fStat->seedRatioPercentDone;
}
- (tr_inactvelimit) inactiveSetting
- (tr_inactivelimit) inactiveSetting
{
return tr_torrentGetInactiveMode(fHandle);
}
- (void) setInactiveSetting: (tr_inactvelimit) setting
- (void) setInactiveSetting: (tr_inactivelimit) setting
{
tr_torrentSetInactiveMode(fHandle, setting);
}