mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
- Removed old file indexing code.
- Switched file sizes from 32bits -> 64 bits so rs can handle large files. - combined Cache/Service Ids are now located in serialiser/rsserviceids.h git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@273 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
470ceaa73b
commit
07d33009b9
15 changed files with 24 additions and 1355 deletions
|
@ -84,11 +84,11 @@ virtual int print(std::ostream &out);
|
|||
/* Data */
|
||||
std::string name;
|
||||
std::string hash;
|
||||
int size; /* file size */
|
||||
int modtime; /* modification time - most recent mod time for a sub entry for dirs */
|
||||
uint64_t size; /* file size */
|
||||
time_t modtime; /* modification time - most recent mod time for a sub entry for dirs */
|
||||
int pop; /* popularity rating */
|
||||
|
||||
int updtime; /* last updated */
|
||||
time_t updtime; /* last updated */
|
||||
|
||||
/* References for easy manipulation */
|
||||
DirEntry *parent;
|
||||
|
@ -213,8 +213,8 @@ int cleanOldEntries(time_t old); /* removes entries older than old */
|
|||
int printFileIndex(std::ostream &out);
|
||||
|
||||
/* load/save to file */
|
||||
int loadIndex(std::string filename, std::string expectedHash, uint32_t size);
|
||||
int saveIndex(std::string filename, std::string &fileHash, uint32_t &size);
|
||||
int loadIndex(std::string filename, std::string expectedHash, uint64_t size);
|
||||
int saveIndex(std::string filename, std::string &fileHash, uint64_t &size);
|
||||
|
||||
/* search through this index */
|
||||
int searchTerms(std::list<std::string> terms, std::list<FileEntry *> &results);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue