| 127 | } |
| 128 | |
| 129 | struct account **list_accounts(const tal_t *ctx, const struct bkpr *bkpr) |
| 130 | { |
| 131 | struct account **results; |
| 132 | struct account_htable_iter it; |
| 133 | struct account *a; |
| 134 | size_t i; |
| 135 | |
| 136 | results = tal_arr(ctx, |
| 137 | struct account *, |
| 138 | account_htable_count(bkpr->accounts->htable)); |
| 139 | for (i = 0, a = account_htable_first(bkpr->accounts->htable, &it); |
| 140 | a; |
| 141 | i++, a = account_htable_next(bkpr->accounts->htable, &it)) { |
| 142 | results[i] = a; |
| 143 | } |
| 144 | |
| 145 | return results; |
| 146 | } |
| 147 | |
| 148 | static const char **ds_path(const tal_t *ctx, const char *acctname) |
| 149 | { |
no outgoing calls
no test coverage detected