Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
62ba5767
Commit
62ba5767
authored
May 05, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add config_GetConfDir
parent
cb47bc07
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
0 deletions
+27
-0
include/vlc_configuration.h
include/vlc_configuration.h
+1
-0
src/Makefile.am
src/Makefile.am
+1
-0
src/config/core.c
src/config/core.c
+24
-0
src/libvlc.sym
src/libvlc.sym
+1
-0
No files found.
include/vlc_configuration.h
View file @
62ba5767
...
@@ -215,6 +215,7 @@ VLC_EXPORT( void, __config_ResetAll, ( vlc_object_t * ) );
...
@@ -215,6 +215,7 @@ VLC_EXPORT( void, __config_ResetAll, ( vlc_object_t * ) );
VLC_EXPORT
(
module_config_t
*
,
config_FindConfig
,(
vlc_object_t
*
,
const
char
*
)
);
VLC_EXPORT
(
module_config_t
*
,
config_FindConfig
,(
vlc_object_t
*
,
const
char
*
)
);
VLC_EXPORT
(
const
char
*
,
config_GetDataDir
,
(
void
));
VLC_EXPORT
(
const
char
*
,
config_GetDataDir
,
(
void
));
VLC_EXPORT
(
const
char
*
,
config_GetConfDir
,
(
void
)
);
VLC_EXPORT
(
char
*
,
config_GetUserConfDir
,
(
void
)
);
VLC_EXPORT
(
char
*
,
config_GetUserConfDir
,
(
void
)
);
VLC_EXPORT
(
char
*
,
config_GetUserDataDir
,
(
void
)
);
VLC_EXPORT
(
char
*
,
config_GetUserDataDir
,
(
void
)
);
VLC_EXPORT
(
char
*
,
config_GetCacheDir
,
(
void
)
);
VLC_EXPORT
(
char
*
,
config_GetCacheDir
,
(
void
)
);
...
...
src/Makefile.am
View file @
62ba5767
...
@@ -172,6 +172,7 @@ libvlc_la_SOURCES = $(SOURCES_libvlc)
...
@@ -172,6 +172,7 @@ libvlc_la_SOURCES = $(SOURCES_libvlc)
nodist_libvlc_la_SOURCES
=
misc/revision.c
nodist_libvlc_la_SOURCES
=
misc/revision.c
libvlc_la_CFLAGS
=
`
$(VLC_CONFIG)
--cflags
libvlc
`
\
libvlc_la_CFLAGS
=
`
$(VLC_CONFIG)
--cflags
libvlc
`
\
-DLOCALEDIR
=
\"
$(localedir)
\"
\
-DLOCALEDIR
=
\"
$(localedir)
\"
\
-DSYSCONFDIR
=
\"
$(sysconfdir)
\"
\
-DDATA_PATH
=
\"
$(pkgdatadir)
\"
\
-DDATA_PATH
=
\"
$(pkgdatadir)
\"
\
-DPLUGIN_PATH
=
\"
$(pkglibdir)
\"
-DPLUGIN_PATH
=
\"
$(pkglibdir)
\"
libvlc_la_CXXFLAGS
=
`
$(VLC_CONFIG)
--cxxflags
libvlc
`
libvlc_la_CXXFLAGS
=
`
$(VLC_CONFIG)
--cxxflags
libvlc
`
...
...
src/config/core.c
View file @
62ba5767
...
@@ -621,6 +621,30 @@ const char *config_GetDataDir( void )
...
@@ -621,6 +621,30 @@ const char *config_GetDataDir( void )
#endif
#endif
}
}
/**
* Determines the system configuration directory.
*
* @return a string (always succeeds).
*/
const
char
*
config_GetConfDir
(
void
)
{
#if defined (WIN32) || defined (UNDER_CE)
return
vlc_global
()
->
psz_vlcpath
;
#elif defined(__APPLE__) || defined (SYS_BEOS)
static
char
path
[
PATH_MAX
]
=
""
;
if
(
*
path
==
'\0'
)
{
snprintf
(
path
,
sizeof
(
path
),
"%s/share"
,
/* FIXME: Duh? */
vlc_global
()
->
psz_vlcpath
);
path
[
sizeof
(
path
)
-
1
]
=
'\0'
;
}
return
path
;
#else
return
SYSCONFDIR
;
#endif
}
static
char
*
GetDir
(
bool
b_appdata
)
static
char
*
GetDir
(
bool
b_appdata
)
{
{
const
char
*
psz_localhome
=
NULL
;
const
char
*
psz_localhome
=
NULL
;
...
...
src/libvlc.sym
View file @
62ba5767
...
@@ -51,6 +51,7 @@ __config_ChainParse
...
@@ -51,6 +51,7 @@ __config_ChainParse
__config_ExistIntf
__config_ExistIntf
config_FindConfig
config_FindConfig
config_GetCacheDir
config_GetCacheDir
config_GetConfDir
config_GetDataDir
config_GetDataDir
__config_GetFloat
__config_GetFloat
__config_GetInt
__config_GetInt
...
...
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