diff options
author | Florin Coras <fcoras@cisco.com> | 2018-03-22 21:24:31 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-03-23 14:20:10 +0000 |
commit | 0bee9ce4af04322c56f7511f24bda4874e78a4b4 (patch) | |
tree | bbe65c79d108741d64321492f436c94b2ba68871 /src/vnet/session/application.h | |
parent | beca26622983018255d87b8031e39e517e4e4242 (diff) |
session: allow builtin apps to register names
Change-Id: I4b428e170436671b329657283cf7653befc85c9f
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application.h')
-rw-r--r-- | src/vnet/session/application.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vnet/session/application.h b/src/vnet/session/application.h index 4050cb47bd4..9f3fc12e486 100644 --- a/src/vnet/session/application.h +++ b/src/vnet/session/application.h @@ -59,6 +59,9 @@ typedef struct _application /** Flags */ u32 flags; + /** Name registered by builtin apps */ + u8 *name; + /* * Binary API interface to external app */ @@ -136,11 +139,12 @@ typedef struct _application application_t *application_new (); int application_init (application_t * app, u32 api_client_index, - u64 * options, session_cb_vft_t * cb_fns); + u8 * name, u64 * options, session_cb_vft_t * cb_fns); void application_del (application_t * app); application_t *application_get (u32 index); application_t *application_get_if_valid (u32 index); application_t *application_lookup (u32 api_client_index); +application_t *application_lookup_name (const u8 * name); u32 application_get_index (application_t * app); int application_start_listen (application_t * app, |