2008-04-13 14:29:11 +00:00
|
|
|
/*
|
2010-01-04 21:00:47 +00:00
|
|
|
* This file Copyright (C) 2008-2010 Mnemosyne LLC
|
2008-04-13 14:29:11 +00:00
|
|
|
*
|
2010-12-27 19:18:17 +00:00
|
|
|
* This file is licensed by the GPL version 2. Works owned by the
|
2008-04-13 14:29:11 +00:00
|
|
|
* Transmission project are granted a special exemption to clause 2(b)
|
2008-09-23 19:11:04 +00:00
|
|
|
* so that the bulk of its code can remain under the MIT license.
|
2008-04-13 14:29:11 +00:00
|
|
|
* This exemption does not extend to derived works not owned by
|
|
|
|
* the Transmission project.
|
|
|
|
*
|
2008-05-28 17:17:12 +00:00
|
|
|
* $Id$
|
2008-04-13 14:29:11 +00:00
|
|
|
*/
|
|
|
|
|
2008-11-24 20:17:36 +00:00
|
|
|
#ifndef __TRANSMISSION__
|
|
|
|
#error only libtransmission should #include this header.
|
|
|
|
#endif
|
|
|
|
|
2008-04-13 14:29:11 +00:00
|
|
|
#ifndef TR_RESUME_H
|
|
|
|
#define TR_RESUME_H
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2009-04-18 23:17:30 +00:00
|
|
|
TR_FR_DOWNLOADED = ( 1 << 0 ),
|
|
|
|
TR_FR_UPLOADED = ( 1 << 1 ),
|
|
|
|
TR_FR_CORRUPT = ( 1 << 2 ),
|
|
|
|
TR_FR_PEERS = ( 1 << 3 ),
|
|
|
|
TR_FR_PROGRESS = ( 1 << 4 ),
|
|
|
|
TR_FR_DND = ( 1 << 5 ),
|
|
|
|
TR_FR_FILE_PRIORITIES = ( 1 << 6 ),
|
|
|
|
TR_FR_BANDWIDTH_PRIORITY = ( 1 << 7 ),
|
|
|
|
TR_FR_SPEEDLIMIT = ( 1 << 8 ),
|
|
|
|
TR_FR_RUN = ( 1 << 9 ),
|
|
|
|
TR_FR_DOWNLOAD_DIR = ( 1 << 10 ),
|
2009-10-19 05:05:00 +00:00
|
|
|
TR_FR_INCOMPLETE_DIR = ( 1 << 11 ),
|
|
|
|
TR_FR_MAX_PEERS = ( 1 << 12 ),
|
|
|
|
TR_FR_ADDED_DATE = ( 1 << 13 ),
|
|
|
|
TR_FR_DONE_DATE = ( 1 << 14 ),
|
|
|
|
TR_FR_ACTIVITY_DATE = ( 1 << 15 ),
|
2010-07-16 03:12:57 +00:00
|
|
|
TR_FR_RATIOLIMIT = ( 1 << 16 ),
|
2010-12-23 19:32:59 +00:00
|
|
|
TR_FR_IDLELIMIT = ( 1 << 17 ),
|
|
|
|
TR_FR_TIME_SEEDING = ( 1 << 18 ),
|
|
|
|
TR_FR_TIME_DOWNLOADING = ( 1 << 19 )
|
2008-04-13 14:29:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a bitwise-or'ed set of the loaded resume data
|
|
|
|
*/
|
2008-09-23 19:11:04 +00:00
|
|
|
uint64_t tr_torrentLoadResume( tr_torrent * tor,
|
2008-04-13 14:29:11 +00:00
|
|
|
uint64_t fieldsToLoad,
|
|
|
|
const tr_ctor * ctor );
|
|
|
|
|
2010-03-22 00:55:43 +00:00
|
|
|
void tr_torrentSaveResume( tr_torrent * tor );
|
2008-04-13 14:29:11 +00:00
|
|
|
|
2008-09-23 19:11:04 +00:00
|
|
|
void tr_torrentRemoveResume( const tr_torrent * tor );
|
2008-04-13 14:29:11 +00:00
|
|
|
|
|
|
|
#endif
|