1 /* 2 * Copyright (c) 2024 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef DRIVERS_EEPROM_EEPROM_SIMULATOR_NATIVE_H 8 #define DRIVERS_EEPROM_EEPROM_SIMULATOR_NATIVE_H 9 10 #include <stdbool.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 int eeprom_mock_init_native(bool eeprom_in_ram, char **mock_eeprom, unsigned int size, 17 int *eeprom_fd, const char *eeprom_file_path, unsigned int erase_value, 18 bool eeprom_erase_at_start); 19 20 void eeprom_mock_cleanup_native(bool eeprom_in_ram, int eeprom_fd, char *mock_eeprom, 21 unsigned int size, const char *eeprom_file_path, 22 bool eeprom_rm_at_exit); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif /* DRIVERS_EEPROM_EEPROM_SIMULATOR_NATIVE_H */ 29