1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

(libT) add tr_getMessageQueuing() for Spry

This commit is contained in:
Charles Kerr 2008-10-21 19:40:12 +00:00
parent aba2849375
commit 6c96058d32
2 changed files with 16 additions and 1 deletions

View file

@ -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 );

View file

@ -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 )
{