Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vcl/session: add api for changing session app worker
[vpp.git]
/
src
/
vcl
/
vppcom.h
diff --git
a/src/vcl/vppcom.h
b/src/vcl/vppcom.h
index
641946b
..
f2fca09
100644
(file)
--- a/
src/vcl/vppcom.h
+++ b/
src/vcl/vppcom.h
@@
-97,6
+97,8
@@
typedef struct vppcom_endpt_t_
uint16_t port;
} vppcom_endpt_t;
uint16_t port;
} vppcom_endpt_t;
+typedef uint32_t vcl_session_handle_t;
+
typedef enum
{
VPPCOM_OK = 0,
typedef enum
{
VPPCOM_OK = 0,
@@
-277,7
+279,8
@@
extern int vppcom_session_sendto (uint32_t session_handle, void *buffer,
extern int vppcom_poll (vcl_poll_t * vp, uint32_t n_sids,
double wait_for_time);
extern int vppcom_mq_epoll_fd (void);
extern int vppcom_poll (vcl_poll_t * vp, uint32_t n_sids,
double wait_for_time);
extern int vppcom_mq_epoll_fd (void);
-extern int vppcom_session_index (uint32_t session_handle);
+extern int vppcom_session_index (vcl_session_handle_t session_handle);
+extern int vppcom_session_worker (vcl_session_handle_t session_handle);
extern int vppcom_session_handle (uint32_t session_index);
extern int vppcom_session_read_segments (uint32_t session_handle,
extern int vppcom_session_handle (uint32_t session_index);
extern int vppcom_session_read_segments (uint32_t session_handle,