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
1e724a9b
Commit
1e724a9b
authored
Nov 12, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua_libs: add a function to trigger callbacks.
parent
7dc473a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
modules/misc/lua/libs/variables.c
modules/misc/lua/libs/variables.c
+9
-0
No files found.
modules/misc/lua/libs/variables.c
View file @
1e724a9b
...
...
@@ -537,6 +537,14 @@ static int vlclua_del_callback( lua_State *L )
return
0
;
}
static
int
vlclua_trigger_callback
(
lua_State
*
L
)
{
vlc_object_t
**
pp_obj
=
luaL_checkudata
(
L
,
1
,
"vlc_object"
);
const
char
*
psz_var
=
luaL_checkstring
(
L
,
2
);
return
vlclua_push_ret
(
L
,
var_TriggerCallback
(
*
pp_obj
,
psz_var
)
);
}
/*****************************************************************************
*
*****************************************************************************/
...
...
@@ -547,6 +555,7 @@ static const luaL_Reg vlclua_var_reg[] = {
{
"create"
,
vlclua_var_create
},
{
"add_callback"
,
vlclua_add_callback
},
{
"del_callback"
,
vlclua_del_callback
},
{
"trigger_callback"
,
vlclua_trigger_callback
},
{
"command"
,
vlclua_command
},
{
"libvlc_command"
,
vlclua_libvlc_command
},
{
NULL
,
NULL
}
...
...
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