aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/jsonrpc_structs.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-03-05 10:10:57 +0200
committerRiccardo Spagni <ric@spagni.net>2019-03-05 10:10:57 +0200
commit5fb4a9719cb799ae59e04cda0a3d760be969d7e8 (patch)
tree8a7361e525f9e7e45bb04e4f252fd9a1c430d0a7 /contrib/epee/include/net/jsonrpc_structs.h
parentMerge pull request #5162 (diff)
parentcheck load_t_from_json return values (diff)
downloadmonero-5fb4a9719cb799ae59e04cda0a3d760be969d7e8.tar.xz
Merge pull request #5101
23abe607 check load_t_from_json return values (moneromooo-monero) e396146a default initialize rpc structures (moneromooo-monero) ef93b099 various: remove unused variables (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include/net/jsonrpc_structs.h')
-rw-r--r--contrib/epee/include/net/jsonrpc_structs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/epee/include/net/jsonrpc_structs.h b/contrib/epee/include/net/jsonrpc_structs.h
index 9df9e2596..b61c369f2 100644
--- a/contrib/epee/include/net/jsonrpc_structs.h
+++ b/contrib/epee/include/net/jsonrpc_structs.h
@@ -18,6 +18,8 @@ namespace epee
epee::serialization::storage_entry id;
t_param params;
+ request(): id{}, params{} {}
+
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(jsonrpc)
KV_SERIALIZE(id)
@@ -30,6 +32,9 @@ namespace epee
{
int64_t code;
std::string message;
+
+ error(): code(0) {}
+
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(code)
KV_SERIALIZE(message)
@@ -55,6 +60,9 @@ namespace epee
t_param result;
epee::serialization::storage_entry id;
t_error error;
+
+ response(): result{}, id(), error{} {}
+
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(jsonrpc)
KV_SERIALIZE(id)
@@ -69,6 +77,9 @@ namespace epee
std::string jsonrpc;
t_param result;
epee::serialization::storage_entry id;
+
+ response(): result{}, id{} {}
+
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(jsonrpc)
KV_SERIALIZE(id)
@@ -82,6 +93,9 @@ namespace epee
std::string jsonrpc;
t_error error;
epee::serialization::storage_entry id;
+
+ response(): error{}, id{} {}
+
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(jsonrpc)
KV_SERIALIZE(id)