diff options
author | Florin Coras <fcoras@cisco.com> | 2018-08-03 02:50:43 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-08-04 16:00:32 +0000 |
commit | 466f289c27f290a2764a82f57f5c20d080227ead (patch) | |
tree | f37fd2763c95e3139d57423d06ae993453dc382c /src/vlibmemory/api.h | |
parent | e7a9b3d2545c00689fe7547e7d807fe4a9b3365d (diff) |
socket api: multiple fds in one msg
Change-Id: I77a6e092a42290eed7201ad4a62e0d00ef997d2b
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vlibmemory/api.h')
-rw-r--r-- | src/vlibmemory/api.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vlibmemory/api.h b/src/vlibmemory/api.h index 8d2b191fb81..2146b16c5b0 100644 --- a/src/vlibmemory/api.h +++ b/src/vlibmemory/api.h @@ -82,20 +82,21 @@ vl_api_registration_del_file (vl_api_registration_t * reg) } always_inline clib_error_t * -vl_api_send_fd_msg (vl_api_registration_t * reg, int fd_to_send) +vl_api_send_fd_msg (vl_api_registration_t * reg, int fds[], int n_fds) { clib_file_t *cf = vl_api_registration_file (reg); if (cf) - return vl_sock_api_send_fd_msg (cf->file_descriptor, fd_to_send); + return vl_sock_api_send_fd_msg (cf->file_descriptor, fds, n_fds); return 0; } always_inline clib_error_t * -vl_api_recv_fd_msg (vl_api_registration_t * reg, int *fd_to_recv, u32 wait) +vl_api_recv_fd_msg (vl_api_registration_t * reg, int fds[], int n_fds, + u32 wait) { clib_file_t *cf = vl_api_registration_file (reg); if (cf) - return vl_sock_api_recv_fd_msg (cf->file_descriptor, fd_to_recv, wait); + return vl_sock_api_recv_fd_msg (cf->file_descriptor, fds, n_fds, wait); return 0; } |