/*---------------------------------------------------------------------------- * Copyright (c) Fenda Technologies Co., Ltd. 2021. All rights reserved. * * Description: fs_api_base.h * * Author: saimen * * Create: 2024-06-28 *--------------------------------------------------------------------------*/ #ifndef FS_API_BASE_H #define FS_API_BASE_H #ifdef __cplusplus extern "C" { #endif #include #include //base int tjd_fs_api_used(char *dev); int tjd_fs_api_unused(char *dev); int tjd_fs_api_total(char *dev); int tjd_fs_api_file_open(const char *path, int flags, int *file_index); int tjd_fs_api_file_close(int file_index); int tjd_fs_api_file_write(int file_index, void *buffer, uint32_t size); int tjd_fs_api_file_read(int file_index, void *buffer, uint32_t size); int tjd_fs_api_file_seek(int file_index, uint32_t oft, int flags); int tjd_fs_api_file_truncate(int file_index, uint32_t oft); int tjd_fs_api_dir_open(const char *path, void* dir); int tjd_fs_api_dir_close(void* dir); int tjd_fs_api_dir_read(void* dir, void *info); int tjd_fs_api_dir_create(const char *path); int tjd_fs_api_unlink(const char *path); int tjd_fs_api_rename(const char *oldpath, const char *newpath); #ifdef __cplusplus } #endif #endif /*LFS_INTERFACE_H*/