source: trunk/libtransmission/resume.h @ 5994

Last change on this file since 5994 was 5994, checked in by charles, 14 years ago

#981: add tr_stat.dateAdded to libT; add "sort by age" to gtk+ client

  • Property svn:keywords set to Date Rev Author Id
File size: 1.1 KB
Line 
1/*
2 * This file Copyright (C) 2008 Charles Kerr <charles@rebelbase.com>
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 5994 2008-06-02 04:41:55Z charles $
11 */
12
13#ifndef TR_RESUME_H
14#define TR_RESUME_H
15
16enum
17{
18  TR_FR_DOWNLOADED    = (1<<0),
19  TR_FR_UPLOADED      = (1<<1),
20  TR_FR_CORRUPT       = (1<<2),
21  TR_FR_PEERS         = (1<<3),
22  TR_FR_PROGRESS      = (1<<4),
23  TR_FR_DND           = (1<<5),
24  TR_FR_PRIORITY      = (1<<6),
25  TR_FR_SPEEDLIMIT    = (1<<7),
26  TR_FR_RUN           = (1<<8),
27  TR_FR_DOWNLOAD_DIR  = (1<<9),
28  TR_FR_MAX_PEERS     = (1<<10),
29  TR_FR_ADDED_DATE    = (1<<11)
30};
31
32/**
33 * Returns a bitwise-or'ed set of the loaded resume data
34 */
35uint64_t tr_torrentLoadResume( tr_torrent    * tor,
36                               uint64_t        fieldsToLoad,
37                               const tr_ctor * ctor );
38
39void tr_torrentSaveResume( const tr_torrent * tor );
40
41void tr_torrentRemoveResume( const tr_torrent * tor );
42
43#endif
Note: See TracBrowser for help on using the repository browser.