values_int is a JSON array of u64s */
| 113 | |
| 114 | /* values_int is a JSON array of u64s */ |
| 115 | static bool jsonarr_accumulate_u64(const char *buffer, |
| 116 | const jsmntok_t *tok, |
| 117 | u64 **dest) |
| 118 | { |
| 119 | const jsmntok_t *t; |
| 120 | size_t i, n; |
| 121 | |
| 122 | if (tok->type != JSMN_ARRAY) |
| 123 | return false; |
| 124 | n = tal_count(*dest); |
| 125 | tal_resize(dest, n + tok->size); |
| 126 | json_for_each_arr(i, t, tok) { |
| 127 | if (!json_to_u64(buffer, t, &(*dest)[n + i])) |
| 128 | return false; |
| 129 | } |
| 130 | return true; |
| 131 | } |
| 132 | |
| 133 | static const char *init(struct command *init_cmd, const char *buf UNUSED, |
| 134 | const jsmntok_t *config UNUSED) |
nothing calls this directly
no test coverage detected