__EXPORT int px4_unregister_shutdown_hook(shutdown_hook_t hook)
Unregister a shutdown hook.
Definition: shutdown.cpp:161
__EXPORT int px4_register_shutdown_hook(shutdown_hook_t hook)
Register a method that should be called when powering off (and also on reboot).
Definition: shutdown.cpp:145
__EXPORT int px4_shutdown_request(bool reboot, bool to_bootloader)
Request the system to shut down or reboot.
Definition: shutdown.cpp:212
__BEGIN_DECLS typedef bool(* shutdown_hook_t)(void)
Shutdown hook callback method (.
Definition: px4_shutdown.h:49
__EXPORT int px4_shutdown_lock(void)
Grab the shutdown lock.
Definition: shutdown.cpp:59
__EXPORT int px4_shutdown_unlock(void)
Release the shutdown lock.
Definition: shutdown.cpp:71