1 /*****************************************************************************
2 * dirs.c: Android directories configuration
3 *****************************************************************************
4 * Copyright © 2012 Rafaël Carré
6 * Authors: Rafaël Carré <funman@videolanorg>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
27 #include <vlc_common.h>
29 #include "config/configuration.h"
33 char *config_GetUserDir (vlc_userdir_t type)
38 return strdup("/sdcard/Android/data/org.videolan.vlc");
40 return strdup("/sdcard/Android/data/org.videolan.vlc/cache");
47 case VLC_DOWNLOAD_DIR:
48 case VLC_TEMPLATES_DIR:
49 case VLC_PUBLICSHARE_DIR:
50 case VLC_DOCUMENTS_DIR:
52 case VLC_PICTURES_DIR: