X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=ucs2-interface%2Fucs_interface.h;h=ec160eb76c9e345856d326ac690f19f3ffed605d;hb=refs%2Fheads%2Fkoi;hp=9fc2475292aa6ce1ed32019eed3b24c4444f482e;hpb=1bba2cf81dc69b4ea87ba0ebc366a58eab45ff84;p=apps%2Fagl-service-unicens.git diff --git a/ucs2-interface/ucs_interface.h b/ucs2-interface/ucs_interface.h index 9fc2475..ec160eb 100644 --- a/ucs2-interface/ucs_interface.h +++ b/ucs2-interface/ucs_interface.h @@ -150,7 +150,7 @@ void UCSI_ReleaseAmsMessage(UCSI_Data_t *my); * \param pPriv - private data section of this instance * \param routeId - identifier as given in XML file along with MOST socket (unique) * \param isActive - true, route will become active. false, route will be deallocated - * + * * \return true, if route was found and the specific command was enqueued to UNICENS. */ bool UCSI_SetRouteActive(UCSI_Data_t *pPriv, uint16_t routeId, bool isActive); @@ -212,6 +212,15 @@ extern uint16_t UCSI_CB_OnGetTime(void *pTag); */ extern void UCSI_CB_OnSetServiceTimer(void *pTag, uint16_t timeout); +/** + * \brief Callback when ever the state of the Network has changed. + * \note This function must be implemented by the integrator + * \param pTag - Pointer given by the integrator by UCSI_Init + * \param isAvailable - true, if the network is operable. false, network is down. No message or stream can be sent or received. + * \param packetBandwidth - The amount of bytes per frame reserved for the Ethernet channel. Must match to the given packetBw value passed to UCSI_NewConfig. + * \param amountOfNodes - The amount of network devices found in the ring. + */ +extern void UCSI_CB_OnNetworkState(void *pTag, bool isAvailable, uint16_t packetBandwidth, uint8_t amountOfNodes); /** * \brief Callback when ever an UNICENS forms a human readable message.