RaaA: Fix write locations of plugins
[maemo-rb.git] / firmware / export / rbpaths.h
blobade7894091f92a9006780b0524bb140ef34423c4
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2010 Thomas Martitz
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __PATHS_H__
23 #define __PATHS_H__
25 #include <stdbool.h>
26 #include "autoconf.h"
27 #include "string-extra.h"
30 /* name of directory where configuration, fonts and other data
31 * files are stored */
32 #ifdef __PCTOOL__
33 #undef ROCKBOX_DIR
34 #undef ROCKBOX_DIR_LEN
35 #undef WPS_DIR
36 #define ROCKBOX_DIR "."
37 #define ROCKBOX_DIR_LEN 1
38 #else
40 /* ROCKBOX_DIR is now defined in autoconf.h for flexible build types */
41 #ifndef ROCKBOX_DIR
42 #error ROCKBOX_DIR not defined (should be in autoconf.h)
43 #endif
44 #define ROCKBOX_DIR_LEN (sizeof(ROCKBOX_DIR)-1)
45 #endif /* def __PCTOOL__ */
47 #ifndef APPLICATION
49 /* make sure both are the same for native builds */
50 #undef ROCKBOX_LIBRARY_PATH
51 #define ROCKBOX_LIBRARY_PATH ROCKBOX_DIR
53 #define PLUGIN_DIR ROCKBOX_DIR "/rocks"
54 #define CODECS_DIR ROCKBOX_DIR "/codecs"
56 #define REC_BASE_DIR "/"
57 #define PLAYLIST_CATALOG_DEFAULT_DIR "/Playlists"
59 #define paths_init()
60 #else /* application */
62 #define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
63 #define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs"
65 #define REC_BASE_DIR ROCKBOX_DIR "/"
66 #define PLAYLIST_CATALOG_DEFAULT_DIR ROCKBOX_DIR "/Playlists"
68 extern void paths_init(void);
70 #endif /* APPLICATION */
72 #define LANG_DIR ROCKBOX_DIR "/langs"
74 #define PLUGIN_GAMES_DIR PLUGIN_DIR "/games"
75 #define PLUGIN_APPS_DIR PLUGIN_DIR "/apps"
76 #define PLUGIN_DEMOS_DIR PLUGIN_DIR "/demos"
77 #define VIEWERS_DIR PLUGIN_DIR "/viewers"
79 #ifdef APPLICATION
80 #define PLUGIN_DATA_DIR "/.rockbox/rocks.data"
81 #define PLUGIN_GAMES_DATA_DIR PLUGIN_DATA_DIR
82 #define PLUGIN_APPS_DATA_DIR PLUGIN_DATA_DIR
83 #define PLUGIN_DEMOS_DATA_DIR PLUGIN_DATA_DIR
84 #define VIEWERS_DATA_DIR PLUGIN_DATA_DIR
85 #else
86 #define PLUGIN_DATA_DIR PLUGIN_DIR
87 #define PLUGIN_GAMES_DATA_DIR PLUGIN_DIR "/games"
88 #define PLUGIN_APPS_DATA_DIR PLUGIN_DIR "/apps"
89 #define PLUGIN_DEMOS_DATA_DIR PLUGIN_DIR "/demos"
90 #define VIEWERS_DATA_DIR PLUGIN_DIR "/viewers"
91 #endif
93 #define WPS_DIR ROCKBOX_DIR "/wps"
94 #define SBS_DIR WPS_DIR
95 #define THEME_DIR ROCKBOX_DIR "/themes"
96 #define FONT_DIR ROCKBOX_DIR "/fonts"
97 #define ICON_DIR ROCKBOX_DIR "/icons"
99 #define BACKDROP_DIR ROCKBOX_DIR "/backdrops"
100 #define EQS_DIR ROCKBOX_DIR "/eqs"
102 /* need to fix this once the application gets record/radio abilities */
103 #define RECPRESETS_DIR ROCKBOX_DIR "/recpresets"
104 #define FMPRESET_PATH ROCKBOX_DIR "/fmpresets"
106 #define DIRCACHE_FILE ROCKBOX_DIR "/dircache.dat"
107 #define CODEPAGE_DIR ROCKBOX_DIR "/codepages"
109 #define VIEWERS_CONFIG ROCKBOX_DIR "/viewers.config"
110 #define CONFIGFILE ROCKBOX_DIR "/config.cfg"
111 #define FIXEDSETTINGSFILE ROCKBOX_DIR "/fixed.cfg"
113 #define PLAYLIST_CONTROL_FILE ROCKBOX_DIR "/.playlist_control"
114 #define NVRAM_FILE ROCKBOX_DIR "/nvram.bin"
115 #define GLYPH_CACHE_FILE ROCKBOX_DIR "/.glyphcache"
116 #endif /* __PATHS_H__ */