diff options
author | John Levon <john.levon@nutanix.com> | 2021-04-06 15:55:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 15:55:02 +0100 |
commit | c42ac841ad1d0094d6f6173e4f8bb4f231f8962b (patch) | |
tree | 050ed4bbd37d65dc8e71ede1ce310a6efd285d8f /samples/server.c | |
parent | 0b722b79212dfd4a5fb6f7b9137c27f27bd46105 (diff) | |
download | libvfio-user-c42ac841ad1d0094d6f6173e4f8bb4f231f8962b.zip libvfio-user-c42ac841ad1d0094d6f6173e4f8bb4f231f8962b.tar.gz libvfio-user-c42ac841ad1d0094d6f6173e4f8bb4f231f8962b.tar.bz2 |
call reset callback on losing client connection (#419)
Give API users an opportunity to clean up when a client disconnects from the
vfio-user socket.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples/server.c')
-rw-r--r-- | samples/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/server.c b/samples/server.c index 476b669..a299c87 100644 --- a/samples/server.c +++ b/samples/server.c @@ -249,7 +249,7 @@ static void do_dma_io(vfu_ctx_t *vfu_ctx, struct server_data *server_data) } } -static int device_reset(vfu_ctx_t *vfu_ctx UNUSED) +static int device_reset(vfu_ctx_t *vfu_ctx UNUSED, vfu_reset_type_t type UNUSED) { vfu_log(vfu_ctx, LOG_DEBUG, "device reset callback"); return 0; |