contrib: drop wince support
[vlc/gmpfix.git] / src / symbian / dirs.c
blob2fd2e6f531880c31d55a04fddadb2be7866dd3a5
1 /*****************************************************************************
2 * dirs.cpp: Symbian Directory Structure
3 *****************************************************************************
4 * Copyright © 2010 Pankaj Yadav
6 * Authors: Pankaj Yadav
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 *****************************************************************************/
23 #include "path.h"
25 #ifdef HAVE_CONFIG_H
26 # include "config.h"
27 #endif
29 #include <vlc_common.h>
31 #include "../libvlc.h"
32 #include <vlc_charset.h>
33 #include <vlc_configuration.h>
34 #include "config/configuration.h"
36 #include <string.h>
38 /**
39 * Determines the shared data directory
41 * @return a null-terminated string or NULL. Use free() to release it.
43 char *config_GetDataDir (void)
45 return GetConstPrivatePath();
48 /**
49 * Determines the architecture-dependent data directory
51 * @return a string (always succeeds).
53 const char *config_GetLibDir (void)
55 return "C:\\Sys\\Bin";
58 char *config_GetUserDir (vlc_userdir_t type)
60 switch (type)
62 case VLC_HOME_DIR:
63 break;
64 case VLC_CONFIG_DIR:
65 return GetConstPrivatePath();
66 case VLC_DATA_DIR:
67 return GetConstPrivatePath();
68 case VLC_CACHE_DIR:
69 return GetConstPrivatePath();
70 case VLC_DESKTOP_DIR:
71 case VLC_DOWNLOAD_DIR:
72 case VLC_TEMPLATES_DIR:
73 case VLC_PUBLICSHARE_DIR:
74 case VLC_DOCUMENTS_DIR:
75 return strdup("C:\\Data\\Others");
76 case VLC_MUSIC_DIR:
77 return strdup("C:\\Data\\Sounds");
78 case VLC_PICTURES_DIR:
79 return strdup("C:\\Data\\Images");
80 case VLC_VIDEOS_DIR:
81 return strdup("C:\\Data\\Videos");
83 return GetConstPrivatePath();