| 64 | } |
| 65 | |
| 66 | static u64 *wait_index_ptr(struct lightningd *ld, |
| 67 | enum wait_subsystem subsystem, |
| 68 | enum wait_index index) |
| 69 | { |
| 70 | struct indexes *indexes; |
| 71 | |
| 72 | assert(subsystem < ARRAY_SIZE(ld->indexes)); |
| 73 | indexes = &ld->indexes[subsystem]; |
| 74 | |
| 75 | assert(index < ARRAY_SIZE(indexes->i)); |
| 76 | |
| 77 | return &indexes->i[index]; |
| 78 | } |
| 79 | |
| 80 | static void json_add_index(struct command *cmd, |
| 81 | struct json_stream *response, |
no outgoing calls
no test coverage detected