mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
(libT) add tr_getMessageQueuing() for Spry
This commit is contained in:
parent
aba2849375
commit
6c96058d32
2 changed files with 16 additions and 1 deletions
|
@ -639,7 +639,9 @@ typedef struct tr_msg_list
|
|||
}
|
||||
tr_msg_list;
|
||||
|
||||
void tr_setMessageQueuing( int enable );
|
||||
void tr_setMessageQueuing( int isEnabled );
|
||||
|
||||
int tr_getMessageQueuing( void );
|
||||
|
||||
tr_msg_list * tr_getQueuedMessages( void );
|
||||
|
||||
|
|
|
@ -128,6 +128,19 @@ tr_setMessageQueuing( int enabled )
|
|||
tr_lockUnlock( messageLock );
|
||||
}
|
||||
|
||||
int
|
||||
tr_getMessageQueuing( void )
|
||||
{
|
||||
int ret;
|
||||
|
||||
tr_msgInit( );
|
||||
tr_lockLock( messageLock );
|
||||
ret = messageQueuing;
|
||||
tr_lockUnlock( messageLock );
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
tr_msg_list *
|
||||
tr_getQueuedMessages( void )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue