summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-01-21 14:58:40 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-01-21 14:58:40 +0000
commitef7293f0bc336beb30f3a5f2eafad4a447f60ac5 (patch)
tree68b02b0278b25a10a261d8813bbf5be39e1a51b6 /firmware
parent33acdef9db5ffa2c6f93dc07d0400c7a72a0f25e (diff)
downloadrockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.zip
rockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.tar.gz
rockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.tar.bz2
rockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.tar.xz
New feature: NOw you can store the recorded files in either /recordings (the directory will be created automatically) or in the current directory.
New feature: A "Create directory" menu option (untested in the simulator). Bug fix: The ON+Play menu could do nasty things if you pressed ON+Play in an empty dir. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4268 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/dir.c4
-rw-r--r--firmware/include/dir.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c
index 001508a..e33bb7f 100644
--- a/firmware/common/dir.c
+++ b/firmware/common/dir.c
@@ -115,7 +115,7 @@ struct dirent* readdir(DIR* dir)
return theent;
}
-int mkdir(char *name)
+int mkdir(char *name, int mode)
{
DIR *dir;
char namecopy[MAX_PATH];
@@ -125,6 +125,8 @@ int mkdir(char *name)
struct dirent *entry;
struct fat_dir newdir;
int rc;
+
+ (void)mode;
if ( name[0] != '/' ) {
DEBUGF("Only absolute paths supported right now\n");
diff --git a/firmware/include/dir.h b/firmware/include/dir.h
index 28a0a02..ab8e15f 100644
--- a/firmware/include/dir.h
+++ b/firmware/include/dir.h
@@ -72,7 +72,7 @@ typedef struct DIRtag
extern DIR* opendir(char* name);
extern int closedir(DIR* dir);
-extern int mkdir(char* name);
+extern int mkdir(char* name, int mode);
extern struct dirent* readdir(DIR* dir);