RaaA: Move directory related stuff from filesystem-unix.c into rbpaths.c.

Part of this change is to align sdlapp builds to other application targets
in that the sim_* wrappers are not used anymore (except for sim_read/write).
Path mangling is now done in rbpaths.c as well.

Change-Id: I9726da73b50a83d9e1a1840288de16ec01ea029d
This commit is contained in:
Thomas Martitz 2014-02-11 15:27:23 +01:00
parent cbc57af0f3
commit 0f928f8785
10 changed files with 216 additions and 357 deletions

View file

@ -73,6 +73,23 @@ extern void paths_init(void);
#endif /* !APPLICATION || SAMSUNG_YPR0 */
#ifdef APPLICATION
#include <dirent.h>
#include <fcntl.h>
int app_open(const char *name, int o, ...);
int app_creat(const char* name, mode_t mode);
int app_remove(const char *name);
int app_rename(const char *old, const char *new);
DIR* app_opendir(const char *_name);
int app_closedir(DIR *dir);
struct dirent* app_readdir(DIR* dir);
int app_mkdir(const char* name);
int app_rmdir(const char* name);
#endif
#define REC_BASE_DIR HOME_DIR
#define PLAYLIST_CATALOG_DEFAULT_DIR HOME_DIR "/Playlists"
@ -120,4 +137,5 @@ extern void paths_init(void);
#define PLAYLIST_CONTROL_FILE ROCKBOX_DIR "/.playlist_control"
#define NVRAM_FILE ROCKBOX_DIR "/nvram.bin"
#define GLYPH_CACHE_FILE ROCKBOX_DIR "/.glyphcache"
#endif /* __PATHS_H__ */