File: resume.h

package info (click to toggle)
transmission 3.00-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 33,160 kB
  • sloc: ansic: 81,055; objc: 18,449; cpp: 16,303; sh: 4,470; javascript: 4,281; makefile: 1,081; xml: 139
file content (51 lines) | stat: -rw-r--r-- 1,404 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * This file Copyright (C) 2008-2014 Mnemosyne LLC
 *
 * It may be used under the GNU GPL versions 2 or 3
 * or any future license endorsed by Mnemosyne LLC.
 *
 */

#pragma once

#ifndef __TRANSMISSION__
#error only libtransmission should #include this header.
#endif

enum
{
    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),
    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),
    TR_FR_RATIOLIMIT = (1 << 16),
    TR_FR_IDLELIMIT = (1 << 17),
    TR_FR_TIME_SEEDING = (1 << 18),
    TR_FR_TIME_DOWNLOADING = (1 << 19),
    TR_FR_FILENAMES = (1 << 20),
    TR_FR_NAME = (1 << 21),
    TR_FR_LABELS = (1 << 22)
};

/**
 * Returns a bitwise-or'ed set of the loaded resume data
 */
uint64_t tr_torrentLoadResume(tr_torrent* tor, uint64_t fieldsToLoad, tr_ctor const* ctor, bool* didRenameToHashOnlyName);

void tr_torrentSaveResume(tr_torrent* tor);

void tr_torrentRemoveResume(tr_torrent const* tor);

int tr_torrentRenameResume(tr_torrent const* tor, char const* newname);