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 *****************************************************************************/
29 #include <vlc_common.h>
31 #include "../libvlc.h"
32 #include <vlc_charset.h>
33 #include <vlc_configuration.h>
34 #include "config/configuration.h"
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();
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
)
65 return GetConstPrivatePath();
67 return GetConstPrivatePath();
69 return GetConstPrivatePath();
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");
77 return strdup("C:\\Data\\Sounds");
78 case VLC_PICTURES_DIR
:
79 return strdup("C:\\Data\\Images");
81 return strdup("C:\\Data\\Videos");
83 return GetConstPrivatePath();