| 295 | } |
| 296 | |
| 297 | static int cleanup(struct sr_output *o) |
| 298 | { |
| 299 | struct out_context *outc; |
| 300 | |
| 301 | outc = o->priv; |
| 302 | |
| 303 | if (outc->zipArchive != NULL){ |
| 304 | save_meta_file(o); |
| 305 | zipClose(outc->zipArchive, NULL); |
| 306 | } |
| 307 | |
| 308 | g_free(outc->filename); |
| 309 | g_free(outc); |
| 310 | o->priv = NULL; |
| 311 | |
| 312 | return SR_OK; |
| 313 | } |
| 314 | |
| 315 | static struct sr_option options[] = { |
| 316 | { "filename", "Filename", "File to write", NULL, NULL }, |
nothing calls this directly
no test coverage detected