Ignore:
Timestamp:
May 29, 2009, 7:17:12 PM (13 years ago)
Author:
charles
Message:

(trunk libT) re-start work on making libT doxygen friendly. still a long ways to go on this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.h

    r8433 r8561  
    187187};
    188188
    189 static inline tr_bool tr_isSession( const tr_session * session )
     189static TR_INLINE tr_bool tr_isSession( const tr_session * session )
    190190{
    191191    return ( session != NULL ) && ( session->magicNumber == SESSION_MAGIC_NUMBER );
    192192}
    193193
     194static TR_INLINE tr_bool tr_isPreallocationMode( tr_preallocation_mode m  )
     195{
     196    return ( m == TR_PREALLOCATE_NONE )
     197        || ( m == TR_PREALLOCATE_SPARSE )
     198        || ( m == TR_PREALLOCATE_FULL );
     199}
     200
     201static TR_INLINE tr_bool tr_isEncryptionMode( tr_encryption_mode m )
     202{
     203    return ( m == TR_CLEAR_PREFERRED )
     204        || ( m == TR_ENCRYPTION_PREFERRED )
     205        || ( m == TR_ENCRYPTION_REQUIRED );
     206}
     207
     208static TR_INLINE tr_bool tr_isPriority( tr_priority_t p )
     209{
     210    return ( p == TR_PRI_LOW )
     211        || ( p == TR_PRI_NORMAL )
     212        || ( p == TR_PRI_HIGH );
     213}
     214
    194215#endif
Note: See TracChangeset for help on using the changeset viewer.