mirror of
https://git.suyu.dev/suyu/discord-rpc.git
synced 2026-01-06 22:49:29 +01:00
Rename, move some json stuff to header
This commit is contained in:
parent
449584b9c9
commit
88ab85c81e
5 changed files with 87 additions and 84 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "connection.h"
|
||||
#include "rapidjson/document.h"
|
||||
#include "serialization.h"
|
||||
|
||||
// I took this from the buffer size libuv uses for named pipes; I suspect ours would usually be much smaller.
|
||||
constexpr size_t MaxRpcFrameSize = 64 * 1024;
|
||||
|
|
@ -50,5 +50,5 @@ struct RpcConnection {
|
|||
void Open();
|
||||
void Close();
|
||||
bool Write(const void* data, size_t length);
|
||||
bool Read(rapidjson::Document& message);
|
||||
bool Read(JsonDocument& message);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue