X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvppcom.h;h=63466844a3f7ee3f46e3ef774f3dd282337544f9;hb=refs%2Fchanges%2F68%2F14768%2F3;hp=b5e753292ecb666d1512e18929f56bba22659e83;hpb=41c9e04be0ca3a081926045e78dc969dab563532;p=vpp.git diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h index b5e753292ec..63466844a3f 100644 --- a/src/vcl/vppcom.h +++ b/src/vcl/vppcom.h @@ -147,6 +147,14 @@ typedef struct _vcl_poll short *revents; } vcl_poll_t; +typedef struct vppcom_data_segment_ +{ + unsigned char *data; + uint32_t len; +} vppcom_data_segment_t; + +typedef vppcom_data_segment_t vppcom_data_segments_t[2]; + /* * VPPCOM Public API Functions */ @@ -255,6 +263,13 @@ extern int vppcom_poll (vcl_poll_t * vp, uint32_t n_sids, extern int vppcom_mq_epoll_fd (void); extern int vppcom_session_index (uint32_t session_handle); +extern int vppcom_session_read_segments (uint32_t session_handle, + vppcom_data_segments_t ds); +extern void vppcom_session_free_segments (uint32_t session_handle, + vppcom_data_segments_t ds); +extern int vppcom_data_segment_copy (void *buf, vppcom_data_segments_t ds, + uint32_t max_bytes); + /** * Request from application to register a new worker *