source: trunk/libtransmission/resume.h @ 12545

Last change on this file since 12545 was 11709, checked in by jordan, 11 years ago

Update the copyright year in the source code comments.

The Berne Convention says that the copyright year is moot, so instead of adding another year to each file as in previous years, I've removed the year altogether from the source code comments in libtransmission, gtk, qt, utils, daemon, and cli.

Juliusz's copyright notice in tr-dht and Johannes' copyright notice in tr-lpd have been left alone; it didn't seem appropriate to modify them.

  • Property svn:keywords set to Date Rev Author Id
File size: 1.7 KB
Line 
1/*
2 * This file Copyright (C) Mnemosyne LLC
3 *
4 * This file is licensed by the GPL version 2. Works owned by the
5 * Transmission project are granted a special exemption to clause 2(b)
6 * so that the bulk of its code can remain under the MIT license.
7 * This exemption does not extend to derived works not owned by
8 * the Transmission project.
9 *
10 * $Id: resume.h 11709 2011-01-19 13:48:47Z jordan $
11 */
12
13#ifndef __TRANSMISSION__
14#error only libtransmission should #include this header.
15#endif
16
17#ifndef TR_RESUME_H
18#define TR_RESUME_H
19
20enum
21{
22    TR_FR_DOWNLOADED          = ( 1 << 0 ),
23    TR_FR_UPLOADED            = ( 1 << 1 ),
24    TR_FR_CORRUPT             = ( 1 << 2 ),
25    TR_FR_PEERS               = ( 1 << 3 ),
26    TR_FR_PROGRESS            = ( 1 << 4 ),
27    TR_FR_DND                 = ( 1 << 5 ),
28    TR_FR_FILE_PRIORITIES     = ( 1 << 6 ),
29    TR_FR_BANDWIDTH_PRIORITY  = ( 1 << 7 ),
30    TR_FR_SPEEDLIMIT          = ( 1 << 8 ),
31    TR_FR_RUN                 = ( 1 << 9 ),
32    TR_FR_DOWNLOAD_DIR        = ( 1 << 10 ),
33    TR_FR_INCOMPLETE_DIR      = ( 1 << 11 ),
34    TR_FR_MAX_PEERS           = ( 1 << 12 ),
35    TR_FR_ADDED_DATE          = ( 1 << 13 ),
36    TR_FR_DONE_DATE           = ( 1 << 14 ),
37    TR_FR_ACTIVITY_DATE       = ( 1 << 15 ),
38    TR_FR_RATIOLIMIT          = ( 1 << 16 ),
39    TR_FR_IDLELIMIT           = ( 1 << 17 ),
40    TR_FR_TIME_SEEDING        = ( 1 << 18 ),
41    TR_FR_TIME_DOWNLOADING    = ( 1 << 19 )
42};
43
44/**
45 * Returns a bitwise-or'ed set of the loaded resume data
46 */
47uint64_t tr_torrentLoadResume( tr_torrent *    tor,
48                               uint64_t        fieldsToLoad,
49                               const tr_ctor * ctor );
50
51void     tr_torrentSaveResume( tr_torrent * tor );
52
53void     tr_torrentRemoveResume( const tr_torrent * tor );
54
55#endif
Note: See TracBrowser for help on using the repository browser.