diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2010-12-29 20:10:11 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2010-12-29 20:10:11 +0000 |
commit | 1980fc3a61db6b85760ff044900094a231568936 (patch) | |
tree | 10a659b743ef4de0504f61784dac1f50c6a79a05 | |
parent | fd58f426d39e1b38125e38a6d279ba88b2b80239 (diff) | |
download | rockbox-1980fc3a61db6b85760ff044900094a231568936.tar.gz rockbox-1980fc3a61db6b85760ff044900094a231568936.zip |
Also PREFIX() other filesystem functions. I hope I got them all now...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28929 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugin.c | 14 | ||||
-rw-r--r-- | firmware/include/dir.h | 5 |
2 files changed, 12 insertions, 7 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index e07d5b4d5d..5e7ac94665 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -317,8 +317,8 @@ static const struct plugin_api rockbox_api = { | |||
317 | PREFIX(creat), | 317 | PREFIX(creat), |
318 | #endif | 318 | #endif |
319 | (write_func)PREFIX(write), | 319 | (write_func)PREFIX(write), |
320 | remove, | 320 | PREFIX(remove), |
321 | rename, | 321 | PREFIX(rename), |
322 | PREFIX(ftruncate), | 322 | PREFIX(ftruncate), |
323 | PREFIX(filesize), | 323 | PREFIX(filesize), |
324 | fdprintf, | 324 | fdprintf, |
@@ -338,11 +338,11 @@ static const struct plugin_api rockbox_api = { | |||
338 | crc_32, | 338 | crc_32, |
339 | 339 | ||
340 | /* dir */ | 340 | /* dir */ |
341 | opendir, | 341 | (opendir_func)PREFIX(opendir), |
342 | closedir, | 342 | (closedir_func)PREFIX(closedir), |
343 | readdir, | 343 | (readdir_func)PREFIX(readdir), |
344 | mkdir, | 344 | PREFIX(mkdir), |
345 | rmdir, | 345 | PREFIX(rmdir), |
346 | dir_exists, | 346 | dir_exists, |
347 | dir_get_info, | 347 | dir_get_info, |
348 | 348 | ||
diff --git a/firmware/include/dir.h b/firmware/include/dir.h index 4f1993143c..3427893024 100644 --- a/firmware/include/dir.h +++ b/firmware/include/dir.h | |||
@@ -72,4 +72,9 @@ | |||
72 | # define rmdir rmdir_uncached | 72 | # define rmdir rmdir_uncached |
73 | #endif | 73 | #endif |
74 | 74 | ||
75 | |||
76 | typedef DIR* (*opendir_func)(const char* name); | ||
77 | typedef int (*closedir_func)(DIR* dir); | ||
78 | typedef struct dirent* (*readdir_func)(DIR* dir); | ||
79 | |||
75 | #endif | 80 | #endif |