mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 17:15:16 -04:00
rsPeers add few JSON API calls
This commit is contained in:
parent
cfe95a57a0
commit
7a1375ff6f
3 changed files with 65 additions and 6 deletions
|
@ -18,6 +18,7 @@
|
|||
|
||||
|
||||
#include "rsurl.h"
|
||||
#include "serialiser/rstypeserializer.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <algorithm>
|
||||
|
@ -254,6 +255,14 @@ RsUrl& RsUrl::setFragment(const std::string& fragment)
|
|||
return decoded.str();
|
||||
}
|
||||
|
||||
void RsUrl::serial_process( RsGenericSerializer::SerializeJob j,
|
||||
RsGenericSerializer::SerializeContext& ctx )
|
||||
{
|
||||
std::string urlString = toString();
|
||||
RS_SERIAL_PROCESS(urlString);
|
||||
fromString(urlString);
|
||||
}
|
||||
|
||||
/*static*/ const std::string RsUrl::schemeSeparator("://");
|
||||
/*static*/ const std::string RsUrl::ipv6WrapOpen("[");
|
||||
/*static*/ const std::string RsUrl::ipv6Separator(":");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue