Remove BACFILE dependency in RAM file systems and add mock file object functions for testing (#1227)
This commit is contained in:
@@ -446,13 +446,11 @@ void bacfile_ramfs_deinit(void)
|
||||
*/
|
||||
void bacfile_ramfs_init(void)
|
||||
{
|
||||
#if defined(BACFILE)
|
||||
bacfile_write_stream_data_callback_set(bacfile_ramfs_write_stream_data);
|
||||
bacfile_read_stream_data_callback_set(bacfile_ramfs_read_stream_data);
|
||||
bacfile_write_record_data_callback_set(bacfile_ramfs_write_record_data);
|
||||
bacfile_read_record_data_callback_set(bacfile_ramfs_read_record_data);
|
||||
bacfile_file_size_callback_set(bacfile_ramfs_file_size);
|
||||
bacfile_file_size_set_callback_set(bacfile_ramfs_file_size_set);
|
||||
#endif
|
||||
File_List = Keylist_Create();
|
||||
}
|
||||
|
||||
@@ -203,9 +203,7 @@ bool bacfile_sramfs_read_record_data(
|
||||
*/
|
||||
void bacfile_sramfs_init(void)
|
||||
{
|
||||
#if defined(BACFILE)
|
||||
bacfile_read_stream_data_callback_set(bacfile_sramfs_read_stream_data);
|
||||
bacfile_read_record_data_callback_set(bacfile_sramfs_read_record_data);
|
||||
bacfile_file_size_callback_set(bacfile_sramfs_file_size);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user