+always_inline svm_msg_q_t *
+session_manager_get_vpp_event_queue (u32 thread_index)
+{
+ return session_manager_main.wrk[thread_index].vpp_event_queue;
+}
+
+int session_manager_flush_enqueue_events (u8 proto, u32 thread_index);
+int session_manager_flush_all_enqueue_events (u8 transport_proto);
+
+always_inline u64
+listen_session_get_handle (stream_session_t * s)
+{
+ ASSERT (s->session_state == SESSION_STATE_LISTENING);
+ return session_handle (s);
+}
+
+always_inline stream_session_t *
+listen_session_get_from_handle (session_handle_t handle)
+{
+ return session_get_from_handle (handle);
+}
+
+always_inline void
+listen_session_parse_handle (session_handle_t handle, u32 * index,
+ u32 * thread_index)
+{
+ session_parse_handle (handle, index, thread_index);
+}
+
+always_inline stream_session_t *
+listen_session_new (u8 thread_index, session_type_t type)
+{
+ stream_session_t *s;
+ s = session_alloc (thread_index);
+ s->session_type = type;
+ s->session_state = SESSION_STATE_LISTENING;
+ return s;
+}
+
+always_inline stream_session_t *
+listen_session_get (u32 index)
+{
+ return session_get (index, 0);
+}
+
+always_inline void
+listen_session_del (stream_session_t * s)
+{
+ session_free (s);
+}
+
+transport_connection_t *listen_session_get_transport (stream_session_t * s);
+
+int
+listen_session_get_local_session_endpoint (stream_session_t * listener,
+ session_endpoint_t * sep);
+
+void session_flush_frames_main_thread (vlib_main_t * vm);
+
+always_inline u8
+session_manager_is_enabled ()
+{
+ return session_manager_main.is_enabled == 1;
+}
+
+#define session_cli_return_if_not_enabled() \
+do { \
+ if (!session_manager_main.is_enabled) \
+ return clib_error_return(0, "session layer is not enabled"); \
+} while (0)
+
+void session_node_enable_disable (u8 is_en);
+