mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 20:36:36 -05:00
added p3fileDatabase as a service in rsinit
This commit is contained in:
parent
df14b41ba6
commit
2668b6da1c
6 changed files with 27 additions and 13 deletions
|
|
@ -148,19 +148,19 @@ void ftServer::SetupFtServer()
|
|||
mFtController->setPartialsDirectory(tmppath);
|
||||
mFtController->setDownloadDirectory(tmppath);
|
||||
|
||||
|
||||
/* Make Cache Source/Store */
|
||||
mFileDatabase = new p3FileDatabase(mServiceCtrl) ;
|
||||
|
||||
/* complete search setup */
|
||||
mFtSearch->addSearchMode(mFtExtra, RS_FILE_HINTS_EXTRA);
|
||||
mFtSearch->addSearchMode(mFileDatabase, RS_FILE_HINTS_LOCAL | RS_FILE_HINTS_REMOTE);
|
||||
|
||||
mServiceCtrl->registerServiceMonitor(mFtController, getServiceInfo().mServiceType);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void ftServer::connectToFileDatabase(p3FileDatabase *fdb)
|
||||
{
|
||||
mFileDatabase = fdb ;
|
||||
mFtSearch->addSearchMode(fdb, RS_FILE_HINTS_LOCAL | RS_FILE_HINTS_REMOTE);
|
||||
}
|
||||
void ftServer::connectToTurtleRouter(p3turtle *fts)
|
||||
{
|
||||
mTurtleRouter = fts ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue