2011-10-08 22:50:08 +08:00
|
|
|
/*
|
|
|
|
* File : dfs.h
|
|
|
|
* This file is part of Device File System in RT-Thread RTOS
|
2012-12-26 09:12:13 +08:00
|
|
|
* COPYRIGHT (C) 2004-2012, RT-Thread Development Team
|
2011-10-08 22:50:08 +08:00
|
|
|
*
|
|
|
|
* The license and distribution terms for this file may be
|
|
|
|
* found in the file LICENSE in this distribution or at
|
|
|
|
* http://www.rt-thread.org/license/LICENSE.
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2005-02-22 Bernard The first version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DFS_H__
|
|
|
|
#define __DFS_H__
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2011-12-23 10:11:55 +08:00
|
|
|
char *dfs_normalize_path(const char *directory, const char *filename);
|
|
|
|
const char *dfs_subdir(const char *directory, const char *filename);
|
2011-10-08 22:50:08 +08:00
|
|
|
|
|
|
|
/* FD APIs */
|
|
|
|
int fd_new(void);
|
2011-12-23 10:11:55 +08:00
|
|
|
struct dfs_fd *fd_get(int fd);
|
|
|
|
void fd_put(struct dfs_fd *fd);
|
|
|
|
int fd_is_open(const char *pathname);
|
2011-10-08 22:50:08 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|