coins update
This commit is contained in:
6
.github/workflows/linux.yml
vendored
6
.github/workflows/linux.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user