From 47ef958d7e4522efc0701b24220ccebea7ba08a4 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Tue, 28 Jan 2020 21:37:04 +0100 Subject: [PATCH] added library version --- src/wallet/plain_wallet_api.cpp | 5 +++++ src/wallet/plain_wallet_api.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index b7d0847d..d49100f1 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -46,6 +46,11 @@ namespace plain_wallet glogs_initialized = true; } + std::string get_version() + { + return PROJECT_VERSION_LONG; + } + hwallet create_instance(const std::string& ip, const std::string& port) { if (!glogs_initialized) diff --git a/src/wallet/plain_wallet_api.h b/src/wallet/plain_wallet_api.h index 836b0f2d..dd481299 100644 --- a/src/wallet/plain_wallet_api.h +++ b/src/wallet/plain_wallet_api.h @@ -12,6 +12,7 @@ namespace plain_wallet typedef int64_t hwallet; hwallet create_instance(const std::string& ip, const std::string& port); void destroy_instance(hwallet h); + std::string get_version(); std::string open(hwallet h, const std::string& path, const std::string& password); std::string restore(hwallet h, const std::string& seed, const std::string& path, const std::string& password);