From 750fa18cae140d6439718a10fa629f3bd64ccb7f Mon Sep 17 00:00:00 2001 From: drbob Date: Wed, 29 Oct 2008 21:11:45 +0000 Subject: [PATCH] Updated libretroshare interface. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@774 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/rsiface/rsfiles.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/rsiface/rsfiles.h b/retroshare-gui/src/rsiface/rsfiles.h index 0745070d3..384c2c228 100644 --- a/retroshare-gui/src/rsiface/rsfiles.h +++ b/retroshare-gui/src/rsiface/rsfiles.h @@ -69,9 +69,13 @@ const uint32_t RS_FILE_HINTS_REMOTE = 0x00000008; const uint32_t RS_FILE_HINTS_DOWNLOAD = 0x00000010; const uint32_t RS_FILE_HINTS_UPLOAD = 0x00000020; + const uint32_t RS_FILE_HINTS_SPEC_ONLY = 0x01000000; const uint32_t RS_FILE_HINTS_NO_SEARCH = 0x02000000; +/* Callback Codes */ +//const uint32_t RS_FILE_HINTS_CACHE = 0x00000001; // ALREADY EXISTS +const uint32_t RS_FILE_HINTS_MEDIA = 0x00001000; const uint32_t RS_FILE_EXTRA_DELETE = 0x0010; @@ -90,7 +94,7 @@ virtual ~RsFiles() { return; } /*** * Control of Downloads. ***/ -virtual bool FileRequest(std::string fname, std::string hash, uint32_t size, +virtual bool FileRequest(std::string fname, std::string hash, uint64_t size, std::string dest, uint32_t flags, std::list srcIds) = 0; virtual bool FileCancel(std::string hash) = 0; virtual bool FileControl(std::string hash, uint32_t flags) = 0; @@ -107,7 +111,7 @@ virtual bool FileDetails(std::string hash, uint32_t hintflags, FileInfo &info) = /*** * Extra List Access ***/ -virtual bool ExtraFileAdd(std::string fname, std::string hash, uint32_t size, +virtual bool ExtraFileAdd(std::string fname, std::string hash, uint64_t size, uint32_t period, uint32_t flags) = 0; virtual bool ExtraFileRemove(std::string hash, uint32_t flags) = 0; virtual bool ExtraFileHash(std::string localpath,