More fixes to JSON API

Remove unnecessary dangerous method from RsLoginHelper
Fix documentation for RsServiceControl::getServiceName that was breaking
  JSON API and causing compilation warning
This commit is contained in:
Gioacchino Mazzurco 2018-09-12 01:06:36 +02:00
parent 5245765964
commit 1694e37c58
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051
3 changed files with 1 additions and 12 deletions
libretroshare/src

@ -284,12 +284,6 @@ struct RsLoginHelper
* @return true if already logged in, false otherwise
*/
bool isLoggedIn();
/**
* @brief Close RetroShare session
* @jsonapi{development}
*/
void closeSession();
};
#endif

@ -141,7 +141,7 @@ public:
/**
* @brief getServiceName lookup the name of a service.
* @jsonapi{development}
* @param[in] service_id service to look up
* @param[in] serviceId service to look up
* @return name of service
*/
virtual std::string getServiceName(uint32_t serviceId) = 0;

@ -2014,11 +2014,6 @@ bool RsLoginHelper::isLoggedIn()
return RsControl::instance()->isReady();
}
void RsLoginHelper::closeSession()
{
RsControl::instance()->rsGlobalShutDown();
}
void RsLoginHelper::Location::serial_process(
RsGenericSerializer::SerializeJob j,
RsGenericSerializer::SerializeContext& ctx )