****
***/
-void
-tr_sessionSetLazyBitfieldEnabled( tr_session * session,
- tr_bool enabled )
-{
- assert( tr_isSession( session ) );
-
- session->useLazyBitfield = enabled != 0;
-}
-
-tr_bool
-tr_sessionIsLazyBitfieldEnabled( const tr_session * session )
-{
- assert( tr_isSession( session ) );
-
- return session->useLazyBitfield;
-}
-
-/***
-****
-***/
-
struct port_forwarding_data
{
tr_bool enabled;
tr_bool isPrefetchEnabled;
tr_bool isTorrentDoneScriptEnabled;
tr_bool isClosed;
- tr_bool useLazyBitfield;
tr_bool isIncompleteFileNamingEnabled;
tr_bool isRatioLimited;
tr_bool isIdleLimited;
void tr_sessionSetCacheLimit_MB( tr_session * session, int mb );
int tr_sessionGetCacheLimit_MB( const tr_session * session );
-void tr_sessionSetLazyBitfieldEnabled( tr_session * session, tr_bool enabled );
-tr_bool tr_sessionIsLazyBitfieldEnabled( const tr_session * session );
-
tr_encryption_mode tr_sessionGetEncryption( tr_session * session );
void tr_sessionSetEncryption( tr_session * session,
tr_encryption_mode mode );