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
c854652c
Commit
c854652c
authored
Sep 25, 2011
by
Rob Jonson
Committed by
Rémi Denis-Courmont
Sep 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose make_path to lua
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
1c7bedae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/lua/libs/strings.c
modules/lua/libs/strings.c
+10
-0
No files found.
modules/lua/libs/strings.c
View file @
c854652c
...
...
@@ -91,6 +91,15 @@ static int vlclua_make_uri( lua_State *L )
return
1
;
}
static
int
vlclua_make_path
(
lua_State
*
L
)
{
const
char
*
psz_input
=
luaL_checkstring
(
L
,
1
);
char
*
psz_path
=
make_path
(
psz_input
);
lua_pushstring
(
L
,
psz_path
);
free
(
psz_path
);
return
1
;
}
static
int
vlclua_resolve_xml_special_chars
(
lua_State
*
L
)
{
int
i_top
=
lua_gettop
(
L
);
...
...
@@ -145,6 +154,7 @@ static const luaL_Reg vlclua_strings_reg[] = {
{
"decode_uri"
,
vlclua_decode_uri
},
{
"encode_uri_component"
,
vlclua_encode_uri_component
},
{
"make_uri"
,
vlclua_make_uri
},
{
"make_path"
,
vlclua_make_path
},
{
"resolve_xml_special_chars"
,
vlclua_resolve_xml_special_chars
},
{
"convert_xml_special_chars"
,
vlclua_convert_xml_special_chars
},
{
"from_charset"
,
vlclua_from_charset
},
...
...
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