From 294afe297c74c7c9413c6bd4856e92c9bc439e7c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 7 Jan 2019 17:49:17 -0800 Subject: vcl/ldp: select cleanup/improvements Change-Id: I640e69388f2ab0f66ad60c5165c749f5a5a9f525 Signed-off-by: Florin Coras --- src/vcl/vppcom.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/vcl/vppcom.h') diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h index 513947a559e..d82c9f9c58c 100644 --- a/src/vcl/vppcom.h +++ b/src/vcl/vppcom.h @@ -173,6 +173,8 @@ typedef struct vppcom_data_segment_ typedef vppcom_data_segment_t vppcom_data_segments_t[2]; +typedef unsigned long vcl_si_set; + /* * VPPCOM Public API Functions */ @@ -259,10 +261,9 @@ extern int vppcom_session_write (uint32_t session_handle, void *buf, extern int vppcom_session_write_msg (uint32_t session_handle, void *buf, size_t n); -extern int vppcom_select (unsigned long n_bits, - unsigned long *read_map, - unsigned long *write_map, - unsigned long *except_map, double wait_for_time); +extern int vppcom_select (int n_bits, vcl_si_set * read_map, + vcl_si_set * write_map, vcl_si_set * except_map, + double wait_for_time); extern int vppcom_epoll_create (void); extern int vppcom_epoll_ctl (uint32_t vep_handle, int op, -- cgit 1.2.3-korg