summaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_event.h
diff options
context:
space:
mode:
authorKeith Burns (alagalah) <alagalah@gmail.com>2018-03-08 16:46:25 -0800
committerKeith Burns (alagalah) <alagalah@gmail.com>2018-03-08 16:46:25 -0800
commit7cf80e08b61c7c48ab834af23b3c7761634e63d2 (patch)
treef6eaf31d4718a3f460f0403a1a520848489c93d4 /src/vcl/vcl_event.h
parentd77eee64b17762bf21f8dbe0b9f955513f81f1a5 (diff)
VCL event handling changes
- added vce_get_event_handler() - added check for event before blocking on mutex in vppcom_session_accept() Change-Id: I8e19ea5fcbaa40279cb28152b9923ca8f1328670 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Diffstat (limited to 'src/vcl/vcl_event.h')
-rw-r--r--src/vcl/vcl_event.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vcl/vcl_event.h b/src/vcl/vcl_event.h
index 7b64ede6ae1..a2e247e8d7c 100644
--- a/src/vcl/vcl_event.h
+++ b/src/vcl/vcl_event.h
@@ -101,6 +101,16 @@ void vce_clear_event (vce_event_thread_t *evt, vce_event_t *ev);
vce_event_t * vce_get_event_from_index(vce_event_thread_t *evt, u32 ev_idx);
/**
+ * @brief vce_get_event_handler()
+ * - returns handler if exists or 0
+ * @param evt - vce_event_thread_t - event system state
+ * @param evk - event key
+ * @return vce_event_handler_reg_t *
+ */
+vce_event_handler_reg_t * vce_get_event_handler (vce_event_thread_t *evt,
+ vce_event_key_t *evk);
+
+/**
* @brief vce_register_handler
* - used by functions who need to be notified that an event has occurred
* on a vce_event_key_t (i.e. event type (enum) and sessionID)