| 409 | } |
| 410 | |
| 411 | static void json_add_layer_key(struct json_stream *js, |
| 412 | const char *fieldname, |
| 413 | const struct layer *layer) |
| 414 | { |
| 415 | json_array_start(js, fieldname); |
| 416 | json_add_string(js, NULL, "askrene"); |
| 417 | json_add_string(js, NULL, "layers"); |
| 418 | json_add_string(js, NULL, layer->name); |
| 419 | json_array_end(js); |
| 420 | } |
| 421 | |
| 422 | static void save_remove(struct layer *layer) |
| 423 | { |
no test coverage detected