From 1bba2cf81dc69b4ea87ba0ebc366a58eab45ff84 Mon Sep 17 00:00:00 2001 From: Thorsten Kummermehr Date: Tue, 7 Nov 2017 16:31:13 +0100 Subject: Deliver network connection label --- ucs2-afb/ucs_binding.c | 2 +- ucs2-interface/ucs_interface.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ucs2-afb/ucs_binding.c b/ucs2-afb/ucs_binding.c index ee1bce6..0b4c378 100644 --- a/ucs2-afb/ucs_binding.c +++ b/ucs2-afb/ucs_binding.c @@ -197,7 +197,7 @@ void UCSI_CB_OnAmsMessageReceived(void *pTag) Don't forget to call UCSI_ReleaseAmsMessage after that */ } -void UCSI_CB_OnRouteResult(void *pTag, uint16_t routeId, bool isActive) +void UCSI_CB_OnRouteResult(void *pTag, uint16_t routeId, bool isActive, uint16_t connectionLabel) { } diff --git a/ucs2-interface/ucs_interface.h b/ucs2-interface/ucs_interface.h index 4ddc588..9fc2475 100644 --- a/ucs2-interface/ucs_interface.h +++ b/ucs2-interface/ucs_interface.h @@ -266,8 +266,9 @@ extern void UCSI_CB_OnAmsMessageReceived(void *pTag); * \param pTag - Pointer given by the integrator by UCSI_Init * \param routeId - identifier as given in XML file along with MOST socket (unique) * \param isActive - true, if the route is now in use. false, the route is not established. + * \param connectionLabel - The connection label used on the Network. Only valid, if isActive=true */ -extern void UCSI_CB_OnRouteResult(void *pTag, uint16_t routeId, bool isActive); +extern void UCSI_CB_OnRouteResult(void *pTag, uint16_t routeId, bool isActive, uint16_t connectionLabel); /** * \brief Callback when a INIC GPIO changes its state -- cgit 1.2.3-korg