Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
5cd6f285
Commit
5cd6f285
authored
May 05, 2008
by
Rémi Denis-Courmont
Browse files
Inline config_GetUserDir
parent
786f7e30
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config/core.c
View file @
5cd6f285
...
...
@@ -675,23 +675,11 @@ char *config_GetHomeDir( void )
return
GetDir
(
false
);
}
/**
* Get the user's main data and config directory:
* - on windows that's the App Data directory;
* - on other OSes it's the same as the home directory.
*/
char
*
config_GetUserDir
(
void
);
/* XXX why does gcc wants a declaration ?
* --funman */
char
*
config_GetUserDir
(
void
)
{
return
GetDir
(
true
);
}
static
char
*
config_GetFooDir
(
const
char
*
xdg_name
,
const
char
*
xdg_default
)
{
char
*
psz_dir
;
#if defined(WIN32) || defined(__APPLE__) || defined(SYS_BEOS)
char
*
psz_parent
=
config_GetUserDir
(
);
char
*
psz_parent
=
GetDir
(
true
);
if
(
asprintf
(
&
psz_dir
,
"%s"
DIR_SEP
CONFIG_DIR
,
psz_parent
)
==
-
1
)
psz_dir
=
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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