I created a Legato component which uses API for voicecall service and additionaly I created an application which uses the component. Both INIT functions are queued in the event queue what means that with “app start myApp” the COMPONENT_INIT callback functions are called. My question now is, how does the application/component get information about an “app stop myApp”. If there is some cleanup work to do e.g. release of resource or memory, then the application/component needs to now that it’s stopped.
I was looking for a COMPONENT_EXIT or whatever, even had a look to the Event Loop API, but couldn’t find such information.
How to handle the stop condition in the application or component?