]> git.sesse.net Git - vlc/blob - src/android/dirs.c
D3D11: use defines for DXGI
[vlc] / src / android / dirs.c
1 /*****************************************************************************
2  * dirs.c: Android directories configuration
3  *****************************************************************************
4  * Copyright © 2012 Rafaël Carré
5  *
6  * Authors: Rafaël Carré <funman@videolanorg>
7  *
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.
12  *
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.
17  *
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  *****************************************************************************/
22
23 #ifdef HAVE_CONFIG_H
24 # include "config.h"
25 #endif
26
27 #include <vlc_common.h>
28
29 #include "config/configuration.h"
30
31 #include <string.h>
32
33 char *config_GetUserDir (vlc_userdir_t type)
34 {
35     switch (type)
36     {
37         case VLC_DATA_DIR:
38             return strdup("/sdcard/Android/data/org.videolan.vlc");
39         case VLC_CACHE_DIR:
40             return strdup("/sdcard/Android/data/org.videolan.vlc/cache");
41
42         case VLC_HOME_DIR:
43         case VLC_CONFIG_DIR:
44             return NULL;
45
46         case VLC_DESKTOP_DIR:
47         case VLC_DOWNLOAD_DIR:
48         case VLC_TEMPLATES_DIR:
49         case VLC_PUBLICSHARE_DIR:
50         case VLC_DOCUMENTS_DIR:
51         case VLC_MUSIC_DIR:
52         case VLC_PICTURES_DIR:
53         case VLC_VIDEOS_DIR:
54             return NULL;
55     }
56     return NULL;
57 }