add a messageLevel argument to tr_initFull()
This commit is contained in:
parent
2b10655f0e
commit
bc84156d4f
|
@ -349,7 +349,8 @@ tr_core_init( GTypeInstance * instance, gpointer g_class SHUTUP )
|
|||
pref_int_get( PREF_KEY_UL_LIMIT ),
|
||||
pref_flag_get( PREF_KEY_DL_LIMIT_ENABLED ),
|
||||
pref_int_get( PREF_KEY_DL_LIMIT ),
|
||||
pref_int_get( PREF_KEY_MAX_PEERS_GLOBAL ) );
|
||||
pref_int_get( PREF_KEY_MAX_PEERS_GLOBAL ),
|
||||
pref_int_get( PREF_KEY_MSGLEVEL ) );
|
||||
|
||||
/* create the model used to store torrent data */
|
||||
g_assert( ALEN( types ) == MC_ROW_COUNT );
|
||||
|
|
|
@ -113,7 +113,8 @@ tr_initFull( const char * tag,
|
|||
int uploadLimit,
|
||||
int isDownloadLimitEnabled,
|
||||
int downloadLimit,
|
||||
int globalPeerLimit )
|
||||
int globalPeerLimit,
|
||||
int messageLevel )
|
||||
{
|
||||
tr_handle * h;
|
||||
|
||||
|
@ -123,6 +124,7 @@ tr_initFull( const char * tag,
|
|||
#endif
|
||||
|
||||
tr_msgInit( );
|
||||
tr_setMessageLevel( messageLevel );
|
||||
|
||||
h = tr_new0( tr_handle, 1 );
|
||||
h->lock = tr_lockNew( );
|
||||
|
@ -175,7 +177,8 @@ tr_handle * tr_init( const char * tag )
|
|||
-1, /* upload speed limit */
|
||||
FALSE, /* use download speed limit? */
|
||||
-1, /* download speed limit */
|
||||
512 ); /* globalPeerLimit */
|
||||
512, /* globalPeerLimit */
|
||||
TR_MSG_INF ); /* message level */
|
||||
}
|
||||
|
||||
/***
|
||||
|
|
|
@ -120,7 +120,8 @@ tr_handle * tr_initFull( const char * tag,
|
|||
int uploadLimit,
|
||||
int isDownloadLimitEnabled,
|
||||
int downloadLimit,
|
||||
int globalPeerLimit );
|
||||
int globalPeerLimit,
|
||||
int messageLevel );
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue