MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / cleanup

Function cleanup

libsigrok4DSL/output/srzip.c:297–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297static 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
315static struct sr_option options[] = {
316 { "filename", "Filename", "File to write", NULL, NULL },

Callers

nothing calls this directly

Calls 2

save_meta_fileFunction · 0.85
zipCloseFunction · 0.85

Tested by

no test coverage detected