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
156dd2ad
Commit
156dd2ad
authored
May 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set intf-add before loading the interface module
parent
4a4dc6df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
27 deletions
+25
-27
src/interface/interface.c
src/interface/interface.c
+25
-27
No files found.
src/interface/interface.c
View file @
156dd2ad
...
...
@@ -89,6 +89,31 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
if
(
!
p_intf
)
return
VLC_ENOMEM
;
/* Variable used for interface spawning */
vlc_value_t
val
,
text
;
var_Create
(
p_intf
,
"intf-add"
,
VLC_VAR_STRING
|
VLC_VAR_HASCHOICE
|
VLC_VAR_ISCOMMAND
);
text
.
psz_string
=
_
(
"Add Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
val
.
psz_string
=
(
char
*
)
"rc"
;
text
.
psz_string
=
(
char
*
)
_
(
"Console"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"telnet"
;
text
.
psz_string
=
(
char
*
)
_
(
"Telnet Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"http"
;
text
.
psz_string
=
(
char
*
)
_
(
"Web Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"logger"
;
text
.
psz_string
=
(
char
*
)
_
(
"Debug logging"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"gestures"
;
text
.
psz_string
=
(
char
*
)
_
(
"Mouse Gestures"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_AddCallback
(
p_intf
,
"intf-add"
,
AddIntfCallback
,
NULL
);
/* Attach interface to its parent object */
vlc_object_attach
(
p_intf
,
p_this
);
vlc_object_set_destructor
(
p_intf
,
intf_Destroy
);
...
...
@@ -178,33 +203,6 @@ void intf_StopThread( intf_thread_t *p_intf )
static
void
*
RunInterface
(
vlc_object_t
*
p_this
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
vlc_value_t
val
,
text
;
int
canc
=
vlc_savecancel
();
/* Variable used for interface spawning */
var_Create
(
p_intf
,
"intf-add"
,
VLC_VAR_STRING
|
VLC_VAR_HASCHOICE
|
VLC_VAR_ISCOMMAND
);
text
.
psz_string
=
_
(
"Add Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
val
.
psz_string
=
(
char
*
)
"rc"
;
text
.
psz_string
=
(
char
*
)
_
(
"Console"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"telnet"
;
text
.
psz_string
=
(
char
*
)
_
(
"Telnet Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"http"
;
text
.
psz_string
=
(
char
*
)
_
(
"Web Interface"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"logger"
;
text
.
psz_string
=
(
char
*
)
_
(
"Debug logging"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
val
.
psz_string
=
(
char
*
)
"gestures"
;
text
.
psz_string
=
(
char
*
)
_
(
"Mouse Gestures"
);
var_Change
(
p_intf
,
"intf-add"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_AddCallback
(
p_intf
,
"intf-add"
,
AddIntfCallback
,
NULL
);
vlc_restorecancel
(
canc
);
/* Give control to the interface */
if
(
p_intf
->
pf_run
)
...
...
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