Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a41e3d70
Commit
a41e3d70
authored
Nov 21, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: fix build
parent
7054ccad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
modules/lua/libs/input.c
modules/lua/libs/input.c
+21
-21
No files found.
modules/lua/libs/input.c
View file @
a41e3d70
...
...
@@ -44,8 +44,6 @@
#include "../libs.h"
#include "../extension.h"
extern
const
luaL_Reg
vlclua_input_item_reg
[];
static
input_item_t
*
vlclua_input_item_get_internal
(
lua_State
*
L
);
input_thread_t
*
vlclua_get_input_internal
(
lua_State
*
L
)
...
...
@@ -254,25 +252,7 @@ static int vlclua_input_item_delete( lua_State *L )
return
1
;
}
static
int
vlclua_input_item_get
(
lua_State
*
L
,
input_item_t
*
p_item
)
{
vlc_gc_incref
(
p_item
);
input_item_t
**
pp
=
lua_newuserdata
(
L
,
sizeof
(
input_item_t
*
)
);
*
pp
=
p_item
;
if
(
luaL_newmetatable
(
L
,
"input_item"
)
)
{
lua_newtable
(
L
);
luaL_register
(
L
,
NULL
,
vlclua_input_item_reg
);
lua_setfield
(
L
,
-
2
,
"__index"
);
lua_pushcfunction
(
L
,
vlclua_input_item_delete
);
lua_setfield
(
L
,
-
2
,
"__gc"
);
}
lua_setmetatable
(
L
,
-
2
);
return
1
;
}
static
int
vlclua_input_item_get
(
lua_State
*
L
,
input_item_t
*
p_item
);
static
int
vlclua_input_item_get_current
(
lua_State
*
L
)
{
...
...
@@ -408,6 +388,26 @@ static const luaL_Reg vlclua_input_item_reg[] = {
{
NULL
,
NULL
}
};
static
int
vlclua_input_item_get
(
lua_State
*
L
,
input_item_t
*
p_item
)
{
vlc_gc_incref
(
p_item
);
input_item_t
**
pp
=
lua_newuserdata
(
L
,
sizeof
(
input_item_t
*
)
);
*
pp
=
p_item
;
if
(
luaL_newmetatable
(
L
,
"input_item"
)
)
{
lua_newtable
(
L
);
luaL_register
(
L
,
NULL
,
vlclua_input_item_reg
);
lua_setfield
(
L
,
-
2
,
"__index"
);
lua_pushcfunction
(
L
,
vlclua_input_item_delete
);
lua_setfield
(
L
,
-
2
,
"__gc"
);
}
lua_setmetatable
(
L
,
-
2
);
return
1
;
}
void
luaopen_input_item
(
lua_State
*
L
,
input_item_t
*
item
)
{
...
...
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