mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 00:55:13 -04:00
added parent row and friend status to shared dirs
This commit is contained in:
parent
82c18bbb86
commit
d8dfce4fff
5 changed files with 267 additions and 65 deletions
|
@ -147,16 +147,16 @@ class p3FileDatabase: public p3Service, public p3Config, public ftSearch //, pub
|
|||
// The remote one is the reference for the PeerId index below:
|
||||
// RemoteDirectories[ getFriendIndex(pid) - 1] = RemoteDirectoryStorage(pid)
|
||||
|
||||
std::vector<RemoteDirectoryStorage *> mRemoteDirectories ;
|
||||
std::vector<DirectoryStorage *> mDirectories ; // mDirectories[0]=mLocalSharedDirs
|
||||
LocalDirectoryStorage *mLocalSharedDirs ;
|
||||
|
||||
RemoteDirectoryUpdater *mRemoteDirWatcher ;
|
||||
RemoteDirectoryUpdater *mRemoteDirWatcher ; // not used yet.
|
||||
LocalDirectoryUpdater *mLocalDirWatcher ;
|
||||
|
||||
// utility functions to make/get a pointer out of an (EntryIndex,PeerId) pair. This is further documented in the .cc
|
||||
|
||||
static bool convertEntryIndexToPointer(EntryIndex& e,uint32_t friend_index,void *& p);
|
||||
static bool convertPointerToEntryIndex(void *p, EntryIndex& e, uint32_t& friend_index) ;
|
||||
static bool convertEntryIndexToPointer(const EntryIndex &e, uint32_t friend_index, void *& p);
|
||||
static bool convertPointerToEntryIndex(const void *p, EntryIndex& e, uint32_t& friend_index) ;
|
||||
uint32_t getFriendIndex(const RsPeerId& pid);
|
||||
const RsPeerId& getFriendFromIndex(uint32_t indx) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue