mirror of
https://github.com/morgan9e/libfprint-fpc1020
synced 2026-04-15 00:44:25 +09:00
virtual-image: Add command to trigger device removal
This is primarily useful for fprintd testing.
This commit is contained in:
@@ -171,6 +171,11 @@ recv_image_hdr_recv_cb (GObject *source_object,
|
||||
!!self->recv_img_hdr[1]);
|
||||
break;
|
||||
|
||||
case -5:
|
||||
/* -5 causes the device to disappear (no further data) */
|
||||
fpi_device_remove (FP_DEVICE (self));
|
||||
break;
|
||||
|
||||
default:
|
||||
/* disconnect client, it didn't play fair */
|
||||
g_io_stream_close (G_IO_STREAM (self->connection), NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user