1 /*
2  * Copyright (c) 2023 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef DRIVERS_FLASH_FLASH_SIMULATOR_NATIVE_H
8 #define DRIVERS_FLASH_FLASH_SIMULATOR_NATIVE_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 int flash_mock_init_native(bool flash_in_ram, uint8_t **mock_flash, unsigned int size,
15 			   int *flash_fd, const char *flash_file_path,
16 			   unsigned int erase_value, bool flash_erase_at_start);
17 
18 void flash_mock_cleanup_native(bool flash_in_ram, int flash_fd, uint8_t *mock_flash,
19 			       unsigned int size, const char *flash_file_path,
20 			       bool flash_rm_at_exit);
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif /* DRIVERS_FLASH_FLASH_SIMULATOR_NATIVE_H */
27