forked from lthn/blockchain
added library version
This commit is contained in:
parent
e690673498
commit
47ef958d7e
2 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue