coins update

This commit is contained in:
Czarek Nakamoto
2024-01-05 14:59:45 +01:00
parent 9511e3bb30
commit a2ef1040df
3 changed files with 16 additions and 2 deletions

View File

@@ -1,7 +1,9 @@
name: Linux Release
run-name: Building monero_c for linux
on: push
on:
push:
tags:
- '*'
# cat envs.txt | sed 's/ //g' | sed 's/: /=/g' | grep -v '#' > .env
# export $(cat .env | xargs)
env:

View File

@@ -499,6 +499,16 @@ void* MONERO_Coins_coin(void* coins_ptr, int index) {
Monero::Coins *coins = reinterpret_cast<Monero::Coins*>(coins_ptr);
return coins->coin(index);
}
int MONERO_Coins_getAll_size(void* coins_ptr) {
Monero::Coins *coins = reinterpret_cast<Monero::Coins*>(coins_ptr);
return coins->getAll().size();
}
void* MONERO_Coins_getAll_byIndex(void* coins_ptr, int index) {
Monero::Coins *coins = reinterpret_cast<Monero::Coins*>(coins_ptr);
return coins->getAll()[index];
}
// virtual std::vector<CoinsInfo*> getAll() const = 0;
// virtual void refresh() = 0;
void MONERO_Coins_refresh(void* coins_ptr) {

View File

@@ -304,6 +304,8 @@ int MONERO_Coins_count(void* coins_ptr);
// virtual CoinsInfo * coin(int index) const = 0;
void* MONERO_Coins_coin(void* coins_ptr, int index);
// virtual std::vector<CoinsInfo*> getAll() const = 0;
int MONERO_Coins_getAll_size(void* coins_ptr);
void* MONERO_Coins_getAll_byIndex(void* coins_ptr, int index);
// virtual void refresh() = 0;
void MONERO_Coins_refresh(void* coins_ptr);
// virtual void setFrozen(std::string public_key) = 0;