![]() |
nrfxlib API 3.3.99
|
| void nrf_rpc_register_cleanup_handler | ( | struct nrf_rpc_cleanup_handler * | handler | ) |
#include <nrf_rpc/include/nrf_rpc.h>
Registers the cleanup handler.
Calling this adds the handler to the list. The handler will be called automatically during nrf_rpc_stop if the cleanup parameter is set to true. This API is used to clean up any custom states set during RPC operations, for example clean up callbacks set.
| handler | Pointer to the structure storing the cleanup handler. This handlers need to stay valid even after the function has finished. |