Changeset 10904
- Timestamp:
- Jun 28, 2010, 1:42:45 PM (12 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/completion.h
r10387 r10904 61 61 62 62 tr_completion * tr_cpDestruct( tr_completion * ); 63 64 static inline tr_completion* tr_cpNew( tr_torrent * tor )65 {66 return tr_cpConstruct( tr_new0( tr_completion, 1 ), tor );67 }68 69 static inline void tr_cpFree( tr_completion * cp )70 {71 tr_free( tr_cpDestruct( cp ) );72 }73 63 74 64 /** -
trunk/libtransmission/fdlimit.h
r10676 r10904 39 39 void tr_close_file( int fd ); 40 40 41 int64_t tr_lseek( int fd, int64_t offset, int whence );42 41 ssize_t tr_pread(int fd, void *buf, size_t count, off_t offset); 43 42 ssize_t tr_pwrite(int fd, const void *buf, size_t count, off_t offset); -
trunk/libtransmission/inout.c
r10810 r10904 57 57 TR_IO_WRITE 58 58 }; 59 60 int64_t61 tr_lseek( int fd, int64_t offset, int whence )62 {63 #if defined( HAVE_LSEEK64 )64 return lseek64( fd, (off64_t)offset, whence );65 #elif defined( WIN32 )66 return _lseeki64( fd, offset, whence );67 #else68 return lseek( fd, (off_t)offset, whence );69 #endif70 }71 59 72 60 /* returns 0 on success, or an errno on failure */ -
trunk/libtransmission/verify.c
r10695 r10904 321 321 322 322 static int 323 compareVerifyByTorrent( const void * va, 324 const void * vb ) 323 compareVerifyByTorrent( const void * va, const void * vb ) 325 324 { 326 325 const struct verify_node * a = va; 327 const tr_torrent * b = vb; 328 326 const tr_torrent * b = vb; 329 327 return a->torrent - b; 330 }331 332 tr_bool333 tr_verifyInProgress( const tr_torrent * tor )334 {335 tr_bool found = FALSE;336 tr_lock * lock = getVerifyLock( );337 tr_lockLock( lock );338 339 assert( tr_isTorrent( tor ) );340 341 found = ( tor == currentNode.torrent )342 || ( tr_list_find( verifyList, tor, compareVerifyByTorrent ) != NULL );343 344 tr_lockUnlock( lock );345 return found;346 328 } 347 329 -
trunk/libtransmission/verify.h
r9868 r10904 30 30 void tr_verifyRemove( tr_torrent * tor ); 31 31 32 tr_bool tr_verifyInProgress( const tr_torrent * tor );33 34 32 void tr_verifyClose( tr_session * ); 35 33
Note: See TracChangeset
for help on using the changeset viewer.