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

Function send_error_packet

libsigrok4DSL/session_driver.c:229–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229static void send_error_packet(const struct sr_dev_inst *cb_sdi, struct session_vdev *vdev, struct sr_datafeed_packet *packet)
230{
231 packet->type = SR_DF_END;
232 packet->status = SR_PKT_SOURCE_ERROR;
233 ds_data_forward(cb_sdi, packet);
234 sr_session_source_remove(-1);
235 close_archive(vdev);
236}
237
238static int receive_data(int fd, int revents, const struct sr_dev_inst *sdi)
239{

Callers 2

receive_dataFunction · 0.70

Calls 3

ds_data_forwardFunction · 0.85
sr_session_source_removeFunction · 0.85
close_archiveFunction · 0.70

Tested by

no test coverage detected