lib/aos/aos_dirent.c
void aos_register_dirops(aos_mkdir_fn_t mkdir_fn,
                         aos_rmdir_fn_t rmdir_fn,
                         aos_opendir_fn_t opendir_fn,
                         aos_readdir_fn_t readdir_fn,
                         aos_closedir_fn_t closedir_fn)
{
    dir_ops.mkdir    = (mkdir_fn    ? mkdir_fn    : aos_mkdir_fail);
    dir_ops.rmdir    = (rmdir_fn    ? rmdir_fn    : aos_rmdir_fail);
    dir_ops.opendir  = (opendir_fn  ? opendir_fn  : aos_opendir_fail);
    dir_ops.readdir  = (readdir_fn  ? readdir_fn  : aos_readdir_fail);
    dir_ops.closedir = (closedir_fn ? closedir_fn : aos_closedir_fail);
}
/**
 * @brief sets the operation handlers for the directory functions
 *
 * @param ops  struct containing function pointers
 */
@brief sets the operation handlers for the directory functions
@param ops  struct containing function pointers
@brief sets the operation handlers for the directory functions @param ops struct containing function pointers
void aos_register_dirops(aos_mkdir_fn_t mkdir_fn,
                         aos_rmdir_fn_t rmdir_fn,
                         aos_opendir_fn_t opendir_fn,
                         aos_readdir_fn_t readdir_fn,
                         aos_closedir_fn_t closedir_fn)
{
    dir_ops.mkdir    = (mkdir_fn    ? mkdir_fn    : aos_mkdir_fail);
    dir_ops.rmdir    = (rmdir_fn    ? rmdir_fn    : aos_rmdir_fail);
    dir_ops.opendir  = (opendir_fn  ? opendir_fn  : aos_opendir_fail);
    dir_ops.readdir  = (readdir_fn  ? readdir_fn  : aos_readdir_fail);
    dir_ops.closedir = (closedir_fn ? closedir_fn : aos_closedir_fail);
}
void aos_register_dirops ( aos_mkdir_fn_t mkdir_fn , aos_rmdir_fn_t rmdir_fn , aos_opendir_fn_t opendir_fn , aos_readdir_fn_t readdir_fn , aos_closedir_fn_t closedir_fn ) { dir_ops . mkdir = ( mkdir_fn ? mkdir_fn : aos_mkdir_fail ) ; dir_ops . rmdir = ( rmdir_fn ? rmdir_fn : aos_rmdir_fail ) ; dir_ops . opendir = ( opendir_fn ? opendir_fn : aos_opendir_fail ) ; dir_ops . readdir = ( readdir_fn ? readdir_fn : aos_readdir_fail ) ; dir_ops . closedir = ( closedir_fn ? closedir_fn : aos_closedir_fail ) ; }
@brief sets the operation handlers for the directory functions
 @param ops  struct containing function pointers
@brief sets the operation handlers for the directory functions @param ops struct containing function pointers