Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
717ff04f
Commit
717ff04f
authored
Mar 16, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA: deprecate functions vlc.misc.*dir
parent
2f8221ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/lua/libs/misc.c
modules/lua/libs/misc.c
+6
-0
No files found.
modules/lua/libs/misc.c
View file @
717ff04f
...
...
@@ -142,6 +142,7 @@ static int vlclua_quit( lua_State *L )
*****************************************************************************/
static
int
vlclua_datadir
(
lua_State
*
L
)
{
msg_Warn
(
vlclua_get_this
(
L
),
"This function is DEPRECATED, use vlc.config.datadir() instead"
);
char
*
psz_data
=
config_GetDataDir
(
vlclua_get_this
(
L
)
);
lua_pushstring
(
L
,
psz_data
);
free
(
psz_data
);
...
...
@@ -150,6 +151,7 @@ static int vlclua_datadir( lua_State *L )
static
int
vlclua_userdatadir
(
lua_State
*
L
)
{
msg_Warn
(
vlclua_get_this
(
L
),
"This function is DEPRECATED, use vlc.config.userdatadir() instead"
);
char
*
dir
=
config_GetUserDir
(
VLC_DATA_DIR
);
lua_pushstring
(
L
,
dir
);
free
(
dir
);
...
...
@@ -158,6 +160,7 @@ static int vlclua_userdatadir( lua_State *L )
static
int
vlclua_homedir
(
lua_State
*
L
)
{
msg_Warn
(
vlclua_get_this
(
L
),
"This function is DEPRECATED, use vlc.config.homedir() instead"
);
char
*
home
=
config_GetUserDir
(
VLC_HOME_DIR
);
lua_pushstring
(
L
,
home
);
free
(
home
);
...
...
@@ -166,6 +169,7 @@ static int vlclua_homedir( lua_State *L )
static
int
vlclua_configdir
(
lua_State
*
L
)
{
msg_Warn
(
vlclua_get_this
(
L
),
"This function is DEPRECATED, use vlc.config.configdir() instead"
);
char
*
dir
=
config_GetUserDir
(
VLC_CONFIG_DIR
);
lua_pushstring
(
L
,
dir
);
free
(
dir
);
...
...
@@ -174,6 +178,7 @@ static int vlclua_configdir( lua_State *L )
static
int
vlclua_cachedir
(
lua_State
*
L
)
{
msg_Warn
(
vlclua_get_this
(
L
),
"This function is DEPRECATED, use vlc.config.cachedir() instead"
);
char
*
dir
=
config_GetUserDir
(
VLC_CACHE_DIR
);
lua_pushstring
(
L
,
dir
);
free
(
dir
);
...
...
@@ -182,6 +187,7 @@ static int vlclua_cachedir( lua_State *L )
static
int
vlclua_datadir_list
(
lua_State
*
L
)
{
msg_Warn
(
vlclua_get_this
(
L
),
"This function is DEPRECATED, use vlc.config.datadir_list instead"
);
const
char
*
psz_dirname
=
luaL_checkstring
(
L
,
1
);
char
**
ppsz_dir_list
=
NULL
;
int
i
=
1
;
...
...
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