diff options
Diffstat (limited to 'lib/libvfio-user.c')
-rw-r--r-- | lib/libvfio-user.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c index 738d3b7..2dccd62 100644 --- a/lib/libvfio-user.c +++ b/lib/libvfio-user.c @@ -1111,15 +1111,6 @@ vfu_get_private(vfu_ctx_t *vfu_ctx) return vfu_ctx->pvt; } -int -vfu_attach_ctx(vfu_ctx_t *vfu_ctx) -{ - - assert(vfu_ctx != NULL); - - return vfu_ctx->tran->attach(vfu_ctx); -} - vfu_ctx_t * vfu_create_ctx(vfu_trans_t trans, const char *path, int flags, void *pvt, vfu_dev_type_t dev_type) @@ -1197,6 +1188,24 @@ err_out: } int +vfu_attach_ctx(vfu_ctx_t *vfu_ctx) +{ + + assert(vfu_ctx != NULL); + + return vfu_ctx->tran->attach(vfu_ctx); +} + +int +vfu_get_poll_fd(vfu_ctx_t *vfu_ctx) +{ + + assert(vfu_ctx != NULL); + + return vfu_ctx->tran->get_poll_fd(vfu_ctx); +} + +int vfu_setup_log(vfu_ctx_t *vfu_ctx, vfu_log_fn_t *log, int log_level) { |