aboutsummaryrefslogtreecommitdiff
path: root/lib/tran_sock.h
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-03-23 15:30:25 +0000
committerGitHub <noreply@github.com>2021-03-23 15:30:25 +0000
commit9ed4c9e8c86ec04cbae067db18e1d31dd5f2ca79 (patch)
tree3179a0a18319c3e863bd01c334de8a8fc7c68ab2 /lib/tran_sock.h
parent8ba55dfb9bb54b773513e78d87d9ebe078384573 (diff)
downloadlibvfio-user-9ed4c9e8c86ec04cbae067db18e1d31dd5f2ca79.zip
libvfio-user-9ed4c9e8c86ec04cbae067db18e1d31dd5f2ca79.tar.gz
libvfio-user-9ed4c9e8c86ec04cbae067db18e1d31dd5f2ca79.tar.bz2
add -Wmissing-declarations (#399)
This is used by SPDK, and it's generally useful. This also uncovered some issues in the test mocking. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Diffstat (limited to 'lib/tran_sock.h')
-rw-r--r--lib/tran_sock.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/tran_sock.h b/lib/tran_sock.h
index 9b37776..754798f 100644
--- a/lib/tran_sock.h
+++ b/lib/tran_sock.h
@@ -60,12 +60,9 @@ tran_parse_version_json(const char *json_str, int *client_max_fdsp,
* Send a message to the other end. The iovecs array should leave the first
* entry empty, as it will be used for the header.
*/
-int
-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);
+MOCKED(int, 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);
/*
* Send a message to the other end with the given data.