diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-11-06 01:56:06 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-11-06 01:56:06 +0200 |
commit | 3dd31d33fa9a1b99aec80ffdd17c67d72d6db6d8 (patch) | |
tree | 938382ca6f100b685068d4b78da3e57be8dea003 /src/wallet/wallet_rpc_server_commands_defs.h | |
parent | Merge pull request #2595 (diff) | |
parent | Wallet: Descriptions through new commands 'set_description', 'get_description' (diff) | |
download | monero-3dd31d33fa9a1b99aec80ffdd17c67d72d6db6d8.tar.xz |
Merge pull request #2605
b370ef54 Wallet: Descriptions through new commands 'set_description', 'get_description' (rbrunner7)
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r-- | src/wallet/wallet_rpc_server_commands_defs.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h index f652fa7ff..ffc2e2d49 100644 --- a/src/wallet/wallet_rpc_server_commands_defs.h +++ b/src/wallet/wallet_rpc_server_commands_defs.h @@ -739,6 +739,48 @@ namespace wallet_rpc }; }; + struct COMMAND_RPC_SET_ATTRIBUTE + { + struct request + { + std::string key; + std::string value; + + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(key) + KV_SERIALIZE(value) + END_KV_SERIALIZE_MAP() + }; + + struct response + { + BEGIN_KV_SERIALIZE_MAP() + END_KV_SERIALIZE_MAP() + }; + }; + + struct COMMAND_RPC_GET_ATTRIBUTE + { + struct request + { + + std::string key; + + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(key) + END_KV_SERIALIZE_MAP() + }; + + struct response + { + std::string value; + + BEGIN_KV_SERIALIZE_MAP() + KV_SERIALIZE(value) + END_KV_SERIALIZE_MAP() + }; + }; + struct transfer_entry { std::string txid; |