summaryrefslogtreecommitdiffstats
path: root/firmware/export/rbpaths.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-12-06 22:26:31 +0000
committerThomas Martitz <kugel@rockbox.org>2010-12-06 22:26:31 +0000
commit2c2416094f426972c9e2e96d25058311bbe82f97 (patch)
tree449b4e12e01c3c5c4afa2ae6a8cd396df82b5a38 /firmware/export/rbpaths.h
parentc35b43b0f54bd607d38908544446caaa02f148a3 (diff)
downloadrockbox-2c2416094f426972c9e2e96d25058311bbe82f97.tar.gz
rockbox-2c2416094f426972c9e2e96d25058311bbe82f97.zip
Get rid of get_user_file_path and do the path handling in wrappers for open() and friends.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28752 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/rbpaths.h')
-rw-r--r--firmware/export/rbpaths.h35
1 files changed, 3 insertions, 32 deletions
diff --git a/firmware/export/rbpaths.h b/firmware/export/rbpaths.h
index cd87888cef..6c5d769ed8 100644
--- a/firmware/export/rbpaths.h
+++ b/firmware/export/rbpaths.h
@@ -26,17 +26,6 @@
#include "autoconf.h"
#include "string-extra.h"
-/* flags for get_user_file_path() */
-/* whether you need write access to that file/dir, especially true
- * for runtime generated files (config.cfg) */
-#define NEED_WRITE (1<<0)
-/* file or directory? */
-#define IS_FILE (1<<1)
-/* make sure the path is copied into the passed buffer (it may return
- * the passed path directly otherwise, e.g. always on target builds) */
-#define FORCE_BUFFER_COPY (1<<2)
-
-
/* name of directory where configuration, fonts and other data
* files are stored */
@@ -67,35 +56,17 @@
#define REC_BASE_DIR "/"
#define PLAYLIST_CATALOG_DEFAULT_DIR "/Playlists"
-#ifndef PLUGIN
-static inline __attribute__((always_inline)) const char* get_user_file_path(const char *path,
- unsigned flags,
- char* buf,
- const size_t bufsize)
-{
- if (flags & FORCE_BUFFER_COPY)
- {
- strlcpy(buf, path, bufsize);
- return buf;
- }
- return path;
-}
-#endif
-
#define paths_init()
#else /* application */
-#define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
-#define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs"
+#define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rocks"
+#define CODECS_DIR ROCKBOX_LIBRARY_PATH "/codecs"
#define REC_BASE_DIR ROCKBOX_DIR "/"
#define PLAYLIST_CATALOG_DEFAULT_DIR ROCKBOX_DIR "/Playlists"
extern void paths_init(void);
-extern const char* get_user_file_path(const char *path,
- unsigned flags,
- char* buf,
- const size_t bufsize);
+
#endif /* APPLICATION */
#define LANG_DIR ROCKBOX_DIR "/langs"