mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 00:45:34 -04:00
Improve API
Manually expose /rsFiles/getFileData to stream/preview files Automatically expose a bunch of methods via JSON API Implement serial_process for std::pair
This commit is contained in:
parent
ab6a5c07cc
commit
3b72f912e4
7 changed files with 252 additions and 39 deletions
|
@ -425,7 +425,7 @@ void ftServer::requestDirUpdate(void *ref)
|
|||
}
|
||||
|
||||
/* Directory Handling */
|
||||
bool ftServer::setDownloadDirectory(std::string path)
|
||||
bool ftServer::setDownloadDirectory(const std::string& path)
|
||||
{
|
||||
return mFtController->setDownloadDirectory(path);
|
||||
}
|
||||
|
@ -435,7 +435,7 @@ std::string ftServer::getDownloadDirectory()
|
|||
return mFtController->getDownloadDirectory();
|
||||
}
|
||||
|
||||
bool ftServer::setPartialsDirectory(std::string path)
|
||||
bool ftServer::setPartialsDirectory(const std::string& path)
|
||||
{
|
||||
return mFtController->setPartialsDirectory(path);
|
||||
}
|
||||
|
|
|
@ -205,8 +205,8 @@ public:
|
|||
* Directory Handling
|
||||
***/
|
||||
virtual void requestDirUpdate(void *ref) ; // triggers the update of the given reference. Used when browsing.
|
||||
virtual bool setDownloadDirectory(std::string path);
|
||||
virtual bool setPartialsDirectory(std::string path);
|
||||
virtual bool setDownloadDirectory(const std::string& path);
|
||||
virtual bool setPartialsDirectory(const std::string& path);
|
||||
virtual std::string getDownloadDirectory();
|
||||
virtual std::string getPartialsDirectory();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue