Add the ui viewport to the theme settings, so that it will be in the theme.cfg create...
[kugel-rb.git] / firmware / include / dir.h
blob5aa6cde35a65fbf92e57eace7e4c26f73ab2c4a3
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 by Kévin Ferrare
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 _DIR_H_
23 #define _DIR_H_
25 #include "config.h"
27 #ifdef HAVE_MULTIVOLUME
29 /* how to name volumes, first char must be outside of legal file names,
30 a number gets appended to enumerate, if applicable */
31 #if (CONFIG_STORAGE & STORAGE_MMC)
32 #define VOL_NAMES "<MMC%d>"
33 #define VOL_ENUM_POS 4 /* position of %d, to avoid runtime calculation */
34 #elif (CONFIG_STORAGE & STORAGE_SD)
35 #define VOL_NAMES "<microSD%d>"
36 #define VOL_ENUM_POS 8 /* position of %d, to avoid runtime calculation */
37 #else
38 #define VOL_NAMES "<HD%d>"
39 #define VOL_ENUM_POS 3
40 #endif
42 #endif
44 #ifdef HAVE_DIRCACHE
45 # include "dircache.h"
46 # define DIR DIR_CACHED
47 # define dirent dircache_entry
48 # define opendir opendir_cached
49 # define closedir closedir_cached
50 # define readdir readdir_cached
51 # define closedir closedir_cached
52 # define mkdir mkdir_cached
53 # define rmdir rmdir_cached
54 #else
55 #include "dir_uncached.h"
56 # define DIR DIR_UNCACHED
57 # define dirent dirent_uncached
58 # define opendir opendir_uncached
59 # define closedir closedir_uncached
60 # define readdir readdir_uncached
61 # define closedir closedir_uncached
62 # define mkdir mkdir_uncached
63 # define rmdir rmdir_uncached
64 #endif
66 #endif