aboutsummaryrefslogtreecommitdiff
path: root/samples/null.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-01-04 16:22:48 +0000
committerGitHub <noreply@github.com>2021-01-04 16:22:48 +0000
commit13f1cd8893fad76359c0f1b5232827ad095d1987 (patch)
treefcc0cfb307d262a4f25df722a906971d62b7ba3f /samples/null.c
parentdd8fb3c0b178e18d7cdbf23e213f9c2045d77a33 (diff)
downloadlibvfio-user-13f1cd8893fad76359c0f1b5232827ad095d1987.zip
libvfio-user-13f1cd8893fad76359c0f1b5232827ad095d1987.tar.gz
libvfio-user-13f1cd8893fad76359c0f1b5232827ad095d1987.tar.bz2
pass vfu_ctx_t to callbacks (#222)
It's easy (with the new vfu_get_private()) to go from a vfu_ctx to the private pointer, but not the reverse; pass the ctx into all the callbacks. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples/null.c')
-rw-r--r--samples/null.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/null.c b/samples/null.c
index 3438f5f..23d727a 100644
--- a/samples/null.c
+++ b/samples/null.c
@@ -43,7 +43,7 @@
#include "tran_sock.h"
static void
-null_log(UNUSED void *pvt, UNUSED int level, char const *msg)
+null_log(vfu_ctx_t *vfu_ctx UNUSED, UNUSED int level, char const *msg)
{
fprintf(stderr, "null: %s", msg);
}