summaryrefslogtreecommitdiffstats
path: root/firmware/include/dir.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-04-16 08:58:29 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-04-16 08:58:29 +0000
commitbc9397d1fa1e05a09f24f5999fa2e85a23916ab9 (patch)
tree5cd8d1f4abc1f40627662c61cdd833d3cc9e768b /firmware/include/dir.h
parentb8beff39e92ebe8c417ef6b9d1a7d467bf84826a (diff)
downloadrockbox-bc9397d1fa1e05a09f24f5999fa2e85a23916ab9.tar.gz
rockbox-bc9397d1fa1e05a09f24f5999fa2e85a23916ab9.zip
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/dir.h')
-rw-r--r--firmware/include/dir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/include/dir.h b/firmware/include/dir.h
index ab8e15ffa6..7de0276840 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);