Changeset 6941


Ignore:
Timestamp:
Oct 21, 2008, 7:40:12 PM (12 years ago)
Author:
charles
Message:

(libT) add tr_getMessageQueuing() for Spry

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r6935 r6941  
    640640tr_msg_list;
    641641
    642 void          tr_setMessageQueuing( int enable );
     642void          tr_setMessageQueuing( int isEnabled );
     643
     644int           tr_getMessageQueuing( void );
    643645
    644646tr_msg_list * tr_getQueuedMessages( void );
  • trunk/libtransmission/utils.c

    r6927 r6941  
    127127    messageQueuing = enabled;
    128128    tr_lockUnlock( messageLock );
     129}
     130
     131int
     132tr_getMessageQueuing( void )
     133{
     134    int ret;
     135
     136    tr_msgInit( );
     137    tr_lockLock( messageLock );
     138    ret = messageQueuing;
     139    tr_lockUnlock( messageLock );
     140
     141    return ret;
    129142}
    130143
Note: See TracChangeset for help on using the changeset viewer.