diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-18 01:05:58 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-04 22:38:03 +0000 |
commit | e396146aeebd61d6a26003045d554f6e94d5f028 (patch) | |
tree | d0abbc7b2feb1325435c149c9f9309063e9fc670 /src/wallet/message_transporter.cpp | |
parent | various: remove unused variables (diff) | |
download | monero-e396146aeebd61d6a26003045d554f6e94d5f028.tar.xz |
default initialize rpc structures
Diffstat (limited to 'src/wallet/message_transporter.cpp')
-rw-r--r-- | src/wallet/message_transporter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wallet/message_transporter.cpp b/src/wallet/message_transporter.cpp index eafd13d3b..19bfa074d 100644 --- a/src/wallet/message_transporter.cpp +++ b/src/wallet/message_transporter.cpp @@ -44,7 +44,7 @@ namespace mms namespace bitmessage_rpc { - struct message_info + struct message_info_t { uint32_t encodingType; std::string toAddress; @@ -66,8 +66,9 @@ namespace bitmessage_rpc KV_SERIALIZE(subject) END_KV_SERIALIZE_MAP() }; + typedef epee::misc_utils::struct_init<message_info_t> message_info; - struct inbox_messages_response + struct inbox_messages_response_t { std::vector<message_info> inboxMessages; @@ -75,6 +76,7 @@ namespace bitmessage_rpc KV_SERIALIZE(inboxMessages) END_KV_SERIALIZE_MAP() }; + typedef epee::misc_utils::struct_init<inbox_messages_response_t> inbox_messages_response; } |