Wirepas SDK
shared_shutdown.h
Go to the documentation of this file.
1
/* Copyright 2020 Wirepas Ltd. All Rights Reserved.
2
*
3
* See file LICENSE.txt for full license details.
4
*
5
*/
6
7
#ifndef _SHARED_SHUTDOWN_H_
8
#define _SHARED_SHUTDOWN_H_
9
10
#include "
api.h
"
11
19
app_res_e
Shared_Shutdown_init
(
void
);
20
31
app_res_e
Shared_Shutdown_addShutDownCb
(
app_lib_system_shutdown_cb_f
callback,
32
uint16_t * cb_id);
33
40
app_res_e
Shared_Shutdown_removeShutDownCb
(uint16_t cb_id);
41
42
#endif //_SHARED_SHUTDOWN_H_
Shared_Shutdown_removeShutDownCb
app_res_e Shared_Shutdown_removeShutDownCb(uint16_t cb_id)
Remove a shutdown cb item from the list. Removed item fields are all set to 0.
Shared_Shutdown_init
app_res_e Shared_Shutdown_init(void)
Initialize the shared Shutdown library.
app_lib_system_shutdown_cb_f
void(* app_lib_system_shutdown_cb_f)(void)
Shutdown callback.
Definition:
system.h:167
Shared_Shutdown_addShutDownCb
app_res_e Shared_Shutdown_addShutDownCb(app_lib_system_shutdown_cb_f callback, uint16_t *cb_id)
Add a new callback about shutdown cb.
app_res_e
app_res_e
Definition:
app.h:201
api.h