diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-16 08:58:29 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-16 08:58:29 +0000 |
| commit | bc9397d1fa1e05a09f24f5999fa2e85a23916ab9 (patch) | |
| tree | 5cd8d1f4abc1f40627662c61cdd833d3cc9e768b /firmware/include | |
| parent | b8beff39e92ebe8c417ef6b9d1a7d467bf84826a (diff) | |
| download | rockbox-bc9397d1fa1e05a09f24f5999fa2e85a23916ab9.zip rockbox-bc9397d1fa1e05a09f24f5999fa2e85a23916ab9.tar.gz rockbox-bc9397d1fa1e05a09f24f5999fa2e85a23916ab9.tar.bz2 rockbox-bc9397d1fa1e05a09f24f5999fa2e85a23916ab9.tar.xz | |
New function: rmdir(). Also some changes in the fat code, to track the parent directory in opendir(), to be able to delete directories
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4509 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
| -rw-r--r-- | firmware/include/dir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/include/dir.h b/firmware/include/dir.h index ab8e15f..7de0276 100644 --- a/firmware/include/dir.h +++ b/firmware/include/dir.h @@ -48,6 +48,7 @@ typedef struct { bool busy; int startcluster; struct fat_dir fatdir; + struct fat_dir parent_dir; struct dirent theent; } DIR; @@ -73,6 +74,7 @@ typedef struct DIRtag extern DIR* opendir(char* name); extern int closedir(DIR* dir); extern int mkdir(char* name, int mode); +extern int rmdir(char* name); extern struct dirent* readdir(DIR* dir); |