transmission/libtransmission/resume.h

43 lines
1.1 KiB
C
Raw Normal View History

/*
* This file Copyright (C) 2008 Charles Kerr <charles@rebelbase.com>
*
* This file is licensed by the GPL version 2. Works owned by the
* Transmission project are granted a special exemption to clause 2(b)
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:$
*/
#ifndef TR_RESUME_H
#define TR_RESUME_H
enum
{
2008-05-18 16:44: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_PRIORITY = (1<<6),
TR_FR_SPEEDLIMIT = (1<<7),
TR_FR_RUN = (1<<8),
TR_FR_DOWNLOAD_DIR = (1<<9),
TR_FR_MAX_PEERS = (1<<10)
};
/**
* Returns a bitwise-or'ed set of the loaded resume data
*/
uint64_t tr_torrentLoadResume( tr_torrent * tor,
uint64_t fieldsToLoad,
const tr_ctor * ctor );
void tr_torrentSaveResume( const tr_torrent * tor );
void tr_torrentRemoveResume( const tr_torrent * tor );
#endif