nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ NRF_MODEM_LIB_ON_SHUTDOWN

#define NRF_MODEM_LIB_ON_SHUTDOWN (   name,
  _callback,
  _context 
)

#include <include/modem/nrf_modem_lib.h>

Value:
static void _callback(void *ctx); \
STRUCT_SECTION_ITERABLE(nrf_modem_lib_shutdown_cb, nrf_modem_hook_##name) = { \
.callback = _callback, \
.context = _context, \
};
Modem library shutdown callback struct.
Definition: nrf_modem_lib.h:123

Define a callback for nrf_modem_lib_shutdown calls.

The callback function _callback is invoked before the library is shutdown.

Parameters
nameCallback name
_callbackCallback function name
_contextUser-defined context for the callback