diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-11-25 05:04:11 -0500 |
---|---|---|
committer | Thanos <tmakatos@gmail.com> | 2020-11-25 10:23:00 +0000 |
commit | 7e48fee45f938bdb1f562155a9159e950eba4a5f (patch) | |
tree | e58ef77eeea8ee44252455f76371a0c4379343f2 /lib | |
parent | 7682d84c43514f51c68524c581c4994ca05c2025 (diff) | |
download | libvfio-user-7e48fee45f938bdb1f562155a9159e950eba4a5f.zip libvfio-user-7e48fee45f938bdb1f562155a9159e950eba4a5f.tar.gz libvfio-user-7e48fee45f938bdb1f562155a9159e950eba4a5f.tar.bz2 |
introduce cmocka unit test framework and first unit test
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/muser_ctx.c | 2 | ||||
-rw-r--r-- | lib/muser_priv.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/muser_ctx.c b/lib/muser_ctx.c index 8e48413..77d4f7b 100644 --- a/lib/muser_ctx.c +++ b/lib/muser_ctx.c @@ -499,7 +499,7 @@ handle_device_get_info(lm_ctx_t *lm_ctx, uint32_t size, return 0; } -static int +int handle_dma_map_or_unmap(lm_ctx_t *lm_ctx, uint32_t size, bool map, int *fds, int nr_fds, struct vfio_user_dma_region *dma_regions) diff --git a/lib/muser_priv.h b/lib/muser_priv.h index 7fa2c2e..2d47d1a 100644 --- a/lib/muser_priv.h +++ b/lib/muser_priv.h @@ -203,6 +203,11 @@ vfio_cmd_to_str(int cmd) { return NULL; } +int +handle_dma_map_or_unmap(lm_ctx_t *lm_ctx, uint32_t size, bool map, + int *fds, int nr_fds, + struct vfio_user_dma_region *dma_regions); + #endif /* LIB_MUSER_PRIV_H */ /* ex: set tabstop=4 shiftwidth=4 softtabstop=4 expandtab: */ |