| 460 | } |
| 461 | |
| 462 | static struct per_variant *get_networkevent_variant(const char *buf, |
| 463 | const jsmntok_t *t, |
| 464 | struct per_subsystem *subsystem, |
| 465 | u64 *timestamp) |
| 466 | { |
| 467 | const jsmntok_t *timetok = json_get_member(buf, t, "timestamp"); |
| 468 | |
| 469 | if (!json_to_u64(buf, timetok, timestamp)) { |
| 470 | plugin_err(plugin, "Bad networkevent created_at '%.*s'", |
| 471 | json_tok_full_len(t), |
| 472 | json_tok_full(buf, t)); |
| 473 | } |
| 474 | |
| 475 | /* There's only one variant here, so use SUCCESS. */ |
| 476 | return &subsystem->variants[SUCCESS]; |
| 477 | } |
| 478 | |
| 479 | static void add_invoice_del_fields(struct out_req *req, |
| 480 | const char *buf, |
nothing calls this directly
no test coverage detected