Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
3902c186
Commit
3902c186
authored
Oct 04, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused config_GetConfDir
parent
b5360cd0
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
0 additions
and
70 deletions
+0
-70
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
+0
-1
include/vlc_configuration.h
include/vlc_configuration.h
+0
-1
src/Makefile.am
src/Makefile.am
+0
-1
src/libvlccore.sym
src/libvlccore.sym
+0
-1
src/os2/dirs.c
src/os2/dirs.c
+0
-11
src/posix/darwin_dirs.c
src/posix/darwin_dirs.c
+0
-15
src/posix/dirs.c
src/posix/dirs.c
+0
-10
src/symbian/dirs.c
src/symbian/dirs.c
+0
-10
src/win32/dirs.c
src/win32/dirs.c
+0
-20
No files found.
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
View file @
3902c186
add_definitions(-Dasm=__asm__ -D_INTL_REDIRECT_MACROS)
add_definitions(-DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/locale")
add_definitions(-DSYSCONFDIR="${CMAKE_INSTALL_PREFIX}/etc")
add_definitions(-DPLUGIN_PATH="${CMAKE_INSTALL_PREFIX}/lib/vlc")
add_definitions(-DDATA_PATH="${CMAKE_INSTALL_PREFIX}/share/vlc")
...
...
include/vlc_configuration.h
View file @
3902c186
...
...
@@ -120,7 +120,6 @@ VLC_API void config_ResetAll( vlc_object_t * );
VLC_API
module_config_t
*
config_FindConfig
(
vlc_object_t
*
,
const
char
*
)
VLC_USED
;
VLC_API
char
*
config_GetDataDir
(
void
)
VLC_USED
VLC_MALLOC
;
VLC_API
char
*
config_GetLibDir
(
void
)
VLC_USED
;
VLC_API
const
char
*
config_GetConfDir
(
void
)
VLC_USED
;
typedef
enum
vlc_userdir
{
...
...
src/Makefile.am
View file @
3902c186
...
...
@@ -167,7 +167,6 @@ lib_LTLIBRARIES = libvlccore.la
AM_CPPFLAGS
=
$(INCICONV)
$(IDN_CFLAGS)
\
-DMODULE_STRING
=
\"
main
\"
\
-DLOCALEDIR
=
\"
$(localedir)
\"
\
-DSYSCONFDIR
=
\"
$(sysconfdir)
\"
\
-DPKGDATADIR
=
\"
$(vlcdatadir)
\"
\
-DPKGLIBDIR
=
\"
$(vlclibdir)
\"
AM_CFLAGS
=
$(CFLAGS_libvlccore)
...
...
src/libvlccore.sym
View file @
3902c186
...
...
@@ -39,7 +39,6 @@ config_ChainParse
config_ChainParseOptions
config_ExistIntf
config_FindConfig
config_GetConfDir
config_GetDataDir
config_GetLibDir
config_GetFloat
...
...
src/os2/dirs.c
View file @
3902c186
...
...
@@ -64,17 +64,6 @@ char *config_GetDataDir (void)
return
datadir
;
}
/**
* Determines the system configuration directory.
*
* @return a string (always succeeds).
*/
const
char
*
config_GetConfDir
(
void
)
{
#warning FIXME: memory leak
return
config_GetLibDir
();
}
char
*
config_GetUserDir
(
vlc_userdir_t
type
)
{
switch
(
type
)
...
...
src/posix/darwin_dirs.c
View file @
3902c186
...
...
@@ -42,21 +42,6 @@
# define MAXPATHLEN 1024
#endif
static
char
*
configdir
=
NULL
;
static
pthread_once_t
once
=
PTHREAD_ONCE_INIT
;
static
void
init_dirs
(
void
)
{
configdir
=
config_GetUserDir
(
VLC_CONFIG_DIR
);
}
const
char
*
config_GetConfDir
(
void
)
{
pthread_once
(
&
once
,
init_dirs
);
return
configdir
;
}
static
char
*
config_GetLibPath
(
void
)
{
/* Get the full program path and name */
...
...
src/posix/dirs.c
View file @
3902c186
...
...
@@ -58,16 +58,6 @@ char *config_GetLibDir (void)
}
#endif
/**
* Determines the system configuration directory.
*
* @return a string (always succeeds).
*/
const
char
*
config_GetConfDir
(
void
)
{
return
SYSCONFDIR
;
}
static
char
*
config_GetHomeDir
(
void
)
{
/* 1/ Try $HOME */
...
...
src/symbian/dirs.c
View file @
3902c186
...
...
@@ -55,16 +55,6 @@ const char *config_GetLibDir (void)
return
"C:
\\
Sys
\\
Bin"
;
}
/**
* Determines the system configuration directory.
*
* @return a string (always succeeds).
*/
const
char
*
config_GetConfDir
(
void
)
{
return
"C:
\\
Data
\\
Others"
;
}
char
*
config_GetUserDir
(
vlc_userdir_t
type
)
{
switch
(
type
)
...
...
src/win32/dirs.c
View file @
3902c186
...
...
@@ -67,26 +67,6 @@ char *config_GetDataDir (void)
return
(
path
!=
NULL
)
?
strdup
(
path
)
:
config_GetLibDir
();
}
const
char
*
config_GetConfDir
(
void
)
{
static
char
appdir
[
PATH_MAX
]
=
""
;
wchar_t
wdir
[
MAX_PATH
];
#warning FIXME: thread-safety!
if
(
*
appdir
)
return
appdir
;
/* Get the "Application Data" folder for all users */
if
(
S_OK
==
SHGetFolderPathW
(
NULL
,
CSIDL_COMMON_APPDATA
|
CSIDL_FLAG_CREATE
,
NULL
,
SHGFP_TYPE_CURRENT
,
wdir
)
)
{
WideCharToMultiByte
(
CP_UTF8
,
0
,
wdir
,
-
1
,
appdir
,
PATH_MAX
,
NULL
,
NULL
);
return
appdir
;
}
return
NULL
;
}
static
char
*
config_GetShellDir
(
int
csidl
)
{
wchar_t
wdir
[
MAX_PATH
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment