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
36376340
Commit
36376340
authored
Jun 26, 2011
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: factorize add_shortcut calls.
parent
d965527a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
modules/lua/vlc.c
modules/lua/vlc.c
+5
-8
No files found.
modules/lua/vlc.c
View file @
36376340
...
...
@@ -113,8 +113,7 @@ vlc_module_begin ()
add_bool
(
"http-index"
,
false
,
INDEX_TEXT
,
INDEX_LONGTEXT
,
true
)
set_capability
(
"interface"
,
0
)
set_callbacks
(
Open_LuaHTTP
,
Close_LuaIntf
)
add_shortcut
(
"luahttp"
)
add_shortcut
(
"http"
)
add_shortcut
(
"luahttp"
,
"http"
)
add_submodule
()
set_section
(
N_
(
"Lua CLI"
),
0
)
...
...
@@ -122,11 +121,10 @@ vlc_module_begin ()
add_string
(
"cli-host"
,
NULL
,
CLIHOST_TEXT
,
CLIHOST_LONGTEXT
,
true
)
set_capability
(
"interface"
,
25
)
set_callbacks
(
Open_LuaCLI
,
Close_LuaIntf
)
add_shortcut
(
"luacli"
)
add_shortcut
(
"luarc"
)
#ifndef WIN32
add_shortcut
(
"cli"
)
add_shortcut
(
"rc"
)
add_shortcut
(
"luacli"
,
"luarc"
,
"cli"
,
"rc"
)
#else
add_shortcut
(
"luacli"
,
"luarc"
)
#endif
add_submodule
()
...
...
@@ -140,8 +138,7 @@ vlc_module_begin ()
TELNETPWD_LONGTEXT
,
true
)
set_capability
(
"interface"
,
0
)
set_callbacks
(
Open_LuaTelnet
,
Close_LuaIntf
)
add_shortcut
(
"luatelnet"
)
add_shortcut
(
"telnet"
)
add_shortcut
(
"luatelnet"
,
"telnet"
)
/* add_shortcut( "luahotkeys" ) */
/* add_shortcut( "hotkeys" ) */
...
...
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