Ignore:
Timestamp:
May 11, 2007, 6:56:59 PM (15 years ago)
Author:
livings124
Message:

separate code for determining if there is a download with same name and location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r1861 r1868  
    6565 **********************************************************************/
    6666/* General errors */
    67 #define TR_OK                   0x00000000
    68 #define TR_ERROR                0x81000000
    69 #define TR_ERROR_ASSERT         0x82000000
     67#define TR_OK                       0x00000000
     68#define TR_ERROR                    0x81000000
     69#define TR_ERROR_ASSERT             0x82000000
    7070/* I/O errors */
    71 #define TR_ERROR_IO_MASK        0x000000FF
    72 #define TR_ERROR_IO_PARENT      0x80000001
    73 #define TR_ERROR_IO_PERMISSIONS 0x80000002
    74 #define TR_ERROR_IO_SPACE       0x80000004
    75 #define TR_ERROR_IO_RESOURCES   0x80000008
    76 #define TR_ERROR_IO_DUP_NAME    0x8000000A
    77 #define TR_ERROR_IO_OTHER       0x80000010
     71#define TR_ERROR_IO_MASK            0x000000FF
     72#define TR_ERROR_IO_PARENT          0x80000001
     73#define TR_ERROR_IO_PERMISSIONS     0x80000002
     74#define TR_ERROR_IO_SPACE           0x80000004
     75#define TR_ERROR_IO_RESOURCES       0x80000008
     76#define TR_ERROR_IO_DUP_DOWNLOAD    0x8000000A
     77#define TR_ERROR_IO_OTHER           0x80000010
    7878/* Misc */
    79 #define TR_ERROR_TC_MASK        0x00000F00
    80 #define TR_ERROR_TC_ERROR       0x80000100
    81 #define TR_ERROR_TC_WARNING     0x80000200
     79#define TR_ERROR_TC_MASK            0x00000F00
     80#define TR_ERROR_TC_ERROR           0x80000100
     81#define TR_ERROR_TC_WARNING         0x80000200
    8282
    8383#define TR_ERROR_ISSET( num, code ) ( (code) == ( (code) & (num) ) )
     
    270270int tr_torrentScrape( tr_torrent_t *, int * s, int * l, int * d );
    271271
     272void   tr_torrentSetFolder( tr_torrent_t *, const char * );
     273char * tr_torrentGetFolder( tr_torrent_t * );
     274
     275int tr_torrentDuplicateDownload( tr_torrent_t * tor );
     276
    272277/***********************************************************************
    273278 * tr_torrentStart
     
    276281 * therefore tr_torrentStart returns immediately.
    277282 **********************************************************************/
    278 void   tr_torrentSetFolder( tr_torrent_t *, const char * );
    279 char * tr_torrentGetFolder( tr_torrent_t * );
    280283void   tr_torrentStart( tr_torrent_t * );
    281284
Note: See TracChangeset for help on using the changeset viewer.