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

Function close_archive

libsigrok4DSL/session_driver.c:208–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208static int close_archive(struct session_vdev *vdev)
209{
210 assert(vdev->archive);
211
212 // close current inner file
213 if (vdev->capfile)
214 {
215 unzCloseCurrentFile(vdev->archive);
216 vdev->capfile = 0;
217 }
218
219 int ret = unzClose(vdev->archive);
220 if (ret != UNZ_OK)
221 {
222 sr_err("close zip archive error!");
223 }
224
225 vdev->archive = NULL;
226 return SR_OK;
227}
228
229static void send_error_packet(const struct sr_dev_inst *cb_sdi, struct session_vdev *vdev, struct sr_datafeed_packet *packet)
230{

Callers 4

send_error_packetFunction · 0.70
receive_dataFunction · 0.70
dev_acquisition_startFunction · 0.70

Calls 2

unzCloseCurrentFileFunction · 0.85
unzCloseFunction · 0.85

Tested by

no test coverage detected