#ifndef _LFS_IO_H_
#define _LFS_IO_H_
#if __XC__
int lfs_init(void);
void lfs_deinit(void);
int lfs_format_all(void);
void lfs_read_config(unsigned char * unsafe config, unsigned char * unsafe buffer, unsigned size);
void lfs_write_config(unsigned char * unsafe config, unsigned char * unsafe buffer, unsigned size);
// EQ参数专用函数
void lfs_read_eq_config(const char * unsafe file_path, unsigned char * unsafe buffer, unsigned size);
void lfs_write_eq_config(const char * unsafe file_path, unsigned char * unsafe buffer, unsigned size);
int lfs_file_exists(const char * unsafe file_path);
int lfs_remove_file(const char * unsafe file_path);
int lfs_create_directory(const char * unsafe dir_path);
#else

int lfs_init(void);
void lfs_deinit(void);
int lfs_format_all(void);
void lfs_read_config(unsigned char * config, unsigned char * buffer, unsigned size);
void lfs_write_config(unsigned char * config, unsigned char * buffer, unsigned size);
// EQ参数专用函数
void lfs_read_eq_config(const char * file_path, unsigned char * buffer, unsigned size);
void lfs_write_eq_config(const char * file_path, unsigned char * buffer, unsigned size);
int lfs_file_exists(const char * file_path);
int lfs_remove_file(const char * file_path);
int lfs_create_directory(const char * dir_path);

#endif
#endif
