From 070688006ac7cea1639f38c0bb270c191f7dc38f Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Fri, 8 Apr 2011 14:24:25 +0000 Subject: a torrent add dialog based off Transmission GTK (different bencode+action implementation) which allows you to set file priorities, torrent priority, directory in advance. probably needs a little more work. --- src/protocol-constants.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/protocol-constants.h') diff --git a/src/protocol-constants.h b/src/protocol-constants.h index 98d1d72..5299f3b 100644 --- a/src/protocol-constants.h +++ b/src/protocol-constants.h @@ -70,6 +70,7 @@ #define FIELD_SEED_RATIO_LIMIT "seedRatioLimit" #define FIELD_PEER_LIMIT "peer-limit" #define FIELD_DOWNLOAD_DIR "downloadDir" +#define FIELD_FILE_DOWNLOAD_DIR "download-dir" #define FIELD_FILES_WANTED "files-wanted" #define FIELD_FILES_UNWANTED "files-unwanted" @@ -115,7 +116,13 @@ enum { STATUS_DOWNLOADING = 4, STATUS_SEEDING = 8, STATUS_PAUSED = 16 -} TorrentState; +}; + +enum { + TR_PRI_LOW = -1, + TR_PRI_NORMAL = 0, /* since NORMAL is 0, memset initializes nicely */ + TR_PRI_HIGH = 1 +}; #define TFILE_LENGTH "length" #define TFILE_BYTES_COMPLETED "bytesCompleted" -- cgit v1.2.3