Add a reboot implementation for the native_sim target which restarts the current executable keeping the command line arguments after closing all open file descriptors. Signed-off-by: Adrian Friedli <adrian.friedli@husqvarnagroup.com> Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no> Co-authored-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
22 lines
393 B
C
22 lines
393 B
C
/*
|
|
* Copyright (c) 2025 GARDENA GmbH
|
|
* Copyright (c) 2025 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef BOARDS_NATIVE_NATIVE_SIM_REBOOT_BOTTOM_H
|
|
#define BOARDS_NATIVE_NATIVE_SIM_REBOOT_BOTTOM_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void native_set_reboot_on_exit(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* BOARDS_NATIVE_NATIVE_SIM_REBOOT_BOTTOM_H */
|