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

View file

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

View file

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

View file

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