diff options
author | Florin Coras <fcoras@cisco.com> | 2024-02-29 18:19:30 -0800 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2024-03-01 22:22:53 +0000 |
commit | 4f3da9c1f73043145f825491ef573f180af10fc9 (patch) | |
tree | 649810f1b98c5cee3f335b2362c5e14907b4922d /src/vnet/session/application_interface.h | |
parent | 242fe13c62fe75fff0fa4d9ade0af0eec740d30f (diff) |
session: add api cb for listen and unlisten
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I28ccebf4d2f0728dd174ab3ee77a0d7ad4b90951
Diffstat (limited to 'src/vnet/session/application_interface.h')
-rw-r--r-- | src/vnet/session/application_interface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/session/application_interface.h b/src/vnet/session/application_interface.h index b41f7a4c43f..c7ed5285ca4 100644 --- a/src/vnet/session/application_interface.h +++ b/src/vnet/session/application_interface.h @@ -62,6 +62,13 @@ typedef struct session_cb_vft_ /** Notify app that session pool migration happened */ void (*session_migrate_callback) (session_t * s, session_handle_t new_sh); + /** Notify app (external only) that listen was processed */ + int (*session_listened_callback) (u32 app_wrk_index, u32 api_context, + session_handle_t handle, int rv); + /** Notify app (external only) that unlisten was processed */ + void (*session_unlistened_callback) (u32 app_wrk_index, session_handle_t sh, + u32 context, int rv); + /** Direct RX callback for built-in application */ int (*builtin_app_rx_callback) (session_t * session); |