Changeset 9604
- Timestamp:
- Nov 27, 2009, 3:25:14 PM (12 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/session.c
r9594 r9604 594 594 struct init_data data; 595 595 596 tr_msgInit( ); 597 596 598 assert( tr_bencIsDict( clientSettings ) ); 597 599 -
trunk/libtransmission/utils.c
r9593 r9604 46 46 47 47 48 int messageLevel = 0; 48 49 static tr_lock * messageLock = NULL; 49 static int messageLevel = 0;50 50 static tr_bool messageQueuing = FALSE; 51 51 static tr_msg_list * messageQueue = NULL; … … 74 74 ***/ 75 75 76 77 static void 76 void 78 77 tr_msgInit( void ) 79 78 { … … 301 300 **** 302 301 ***/ 303 304 int305 tr_msgLoggingIsActive( int level )306 {307 tr_msgInit( );308 309 return messageLevel >= level;310 }311 302 312 303 void -
trunk/libtransmission/utils.h
r9593 r9604 124 124 #endif 125 125 126 int tr_msgLoggingIsActive( int level ); 126 void tr_msgInit( void ); 127 128 extern int messageLevel; 129 130 static TR_INLINE tr_bool tr_msgLoggingIsActive( int level ) 131 { 132 return messageLevel >= level; 133 } 127 134 128 135 void tr_msg( const char * file,
Note: See TracChangeset
for help on using the changeset viewer.