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
9 * it 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 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
20 * Foundation, 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_GetDataDirDefault (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";
59 * Determines the system configuration directory.
61 * @return a string (always succeeds).
63 const char *config_GetConfDir( void )
65 return "C:\\Data\\Others";
68 char *config_GetUserDir (vlc_userdir_t type)
75 return GetConstPrivatePath();
77 return GetConstPrivatePath();
79 return GetConstPrivatePath();
81 case VLC_DOWNLOAD_DIR:
82 case VLC_TEMPLATES_DIR:
83 case VLC_PUBLICSHARE_DIR:
84 case VLC_DOCUMENTS_DIR:
85 return strdup("C:\\Data\\Others");
87 return strdup("C:\\Data\\Sounds");
88 case VLC_PICTURES_DIR:
89 return strdup("C:\\Data\\Images");
91 return strdup("C:\\Data\\Videos");
93 return GetConstPrivatePath();