diff options
author | John Levon <john.levon@nutanix.com> | 2021-02-05 11:23:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-05 11:23:39 +0000 |
commit | 687f2a333d7dd0aeed741c2781dd6ef151a22040 (patch) | |
tree | a4c70fb3d56df688ffad0f0eace143f6fe776652 /test/mocks.c | |
parent | d4055f08f2a2db79b080afd6483ff6b4b558c2b2 (diff) | |
download | libvfio-user-687f2a333d7dd0aeed741c2781dd6ef151a22040.zip libvfio-user-687f2a333d7dd0aeed741c2781dd6ef151a22040.tar.gz libvfio-user-687f2a333d7dd0aeed741c2781dd6ef151a22040.tar.bz2 |
use tran_sock_*() namespace (#308)
Rename (again!) all internal tran_sock APIs so it's very clear which cases are
directly using them, perhaps when they shouldn't.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/mocks.c')
-rw-r--r-- | test/mocks.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/mocks.c b/test/mocks.c index 7f7fc02..c38ec7b 100644 --- a/test/mocks.c +++ b/test/mocks.c @@ -129,10 +129,10 @@ __wrap_close(int fd) } int -__wrap_vfu_send_iovec(int sock, uint16_t msg_id, bool is_reply, - enum vfio_user_command cmd, - struct iovec *iovecs, size_t nr_iovecs, - int *fds, int count, int err) +__wrap_tran_sock_send_iovec(int sock, uint16_t msg_id, bool is_reply, + enum vfio_user_command cmd, + struct iovec *iovecs, size_t nr_iovecs, + int *fds, int count, int err) { check_expected(sock); check_expected(msg_id); @@ -177,7 +177,7 @@ static struct function funcs[] = { {.addr = &__wrap_get_next_command}, {.addr = &__wrap_exec_command}, {.addr = &__wrap_close}, - {.addr = &__wrap_vfu_send_iovec}, + {.addr = &__wrap_tran_sock_send_iovec}, {.addr = &__wrap_free}, {.addr = &__wrap_process_request} }; |