diff options
Diffstat (limited to 'firmware/export/rbpaths.h')
-rw-r--r-- | firmware/export/rbpaths.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/rbpaths.h b/firmware/export/rbpaths.h index 0a5b36c5ab..1f7e1a2643 100644 --- a/firmware/export/rbpaths.h +++ b/firmware/export/rbpaths.h | |||
@@ -60,7 +60,6 @@ | |||
60 | #else /* APPLICATION */ | 60 | #else /* APPLICATION */ |
61 | 61 | ||
62 | #define HOME_DIR "<HOME>" /* replaced at runtime */ | 62 | #define HOME_DIR "<HOME>" /* replaced at runtime */ |
63 | #define HOME_DIR_LEN (sizeof(HOME_DIR)-1) | ||
64 | 63 | ||
65 | #define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks" | 64 | #define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks" |
66 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) | 65 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) |
@@ -73,10 +72,13 @@ extern void paths_init(void); | |||
73 | 72 | ||
74 | #endif /* !APPLICATION || SAMSUNG_YPR0 */ | 73 | #endif /* !APPLICATION || SAMSUNG_YPR0 */ |
75 | 74 | ||
75 | #define HOME_DIR_LEN (sizeof(HOME_DIR)-1) | ||
76 | |||
76 | #ifdef APPLICATION | 77 | #ifdef APPLICATION |
77 | 78 | ||
78 | #include <dirent.h> | 79 | #include <dirent.h> |
79 | #include <fcntl.h> | 80 | #include <fcntl.h> |
81 | #include <unistd.h> | ||
80 | 82 | ||
81 | int app_open(const char *name, int o, ...); | 83 | int app_open(const char *name, int o, ...); |
82 | int app_creat(const char* name, mode_t mode); | 84 | int app_creat(const char* name, mode_t mode); |
@@ -87,6 +89,7 @@ int app_closedir(DIR *dir); | |||
87 | struct dirent* app_readdir(DIR* dir); | 89 | struct dirent* app_readdir(DIR* dir); |
88 | int app_mkdir(const char* name); | 90 | int app_mkdir(const char* name); |
89 | int app_rmdir(const char* name); | 91 | int app_rmdir(const char* name); |
92 | ssize_t app_readlink(const char *path, char *buf, size_t bufsiz); | ||
90 | 93 | ||
91 | #endif | 94 | #endif |
92 | 95 | ||