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
2088087d
Commit
2088087d
authored
Apr 08, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP old: use vlc_sd_GetNames(), fix #3490
parent
892f7679
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
26 deletions
+21
-26
modules/control/http/http.h
modules/control/http/http.h
+2
-2
modules/control/http/macro.c
modules/control/http/macro.c
+2
-4
modules/control/http/mvar.c
modules/control/http/mvar.c
+15
-17
share/http/dialogs/playlist
share/http/dialogs/playlist
+2
-3
No files found.
modules/control/http/http.h
View file @
2088087d
...
...
@@ -186,8 +186,8 @@ void mvar_AppendNewVar( mvar_t *vars, const char *name,
* The arg parameter must be of the form "start[:stop[:step]]" */
mvar_t
*
mvar_IntegerSetNew
(
const
char
*
name
,
const
char
*
arg
);
/** This function creates a set variable with a list of
VLC object
s */
mvar_t
*
mvar_
ObjectSetNew
(
intf_thread_t
*
p_intf
,
char
*
name
,
const
char
*
arg
);
/** This function creates a set variable with a list of
SD plugin
s */
mvar_t
*
mvar_
ServicesSetNew
(
intf_thread_t
*
p_intf
,
char
*
name
);
/** This function creates a set variable with the contents of the playlist */
mvar_t
*
mvar_PlaylistSetNew
(
intf_thread_t
*
p_intf
,
char
*
name
,
...
...
modules/control/http/macro.c
View file @
2088087d
...
...
@@ -1019,11 +1019,9 @@ void Execute( httpd_file_sys_t *p_args,
index
=
mvar_FileSetNew
(
p_intf
,
m
.
param1
,
arg
);
free
(
arg
);
}
else
if
(
!
strcmp
(
m
.
param2
,
"
object
"
)
)
else
if
(
!
strcmp
(
m
.
param2
,
"
services
"
)
)
{
char
*
arg
=
SSPop
(
&
p_args
->
stack
);
index
=
mvar_ObjectSetNew
(
p_intf
,
m
.
param1
,
arg
);
free
(
arg
);
index
=
mvar_ServicesSetNew
(
p_intf
,
m
.
param1
);
}
else
if
(
!
strcmp
(
m
.
param2
,
"playlist"
)
)
{
...
...
modules/control/http/mvar.c
View file @
2088087d
...
...
@@ -35,6 +35,7 @@
#include <sys/stat.h>
#endif
#include <vlc_fs.h>
#include <vlc_services_discovery.h>
/* Utility function for scandir */
static
int
Filter
(
const
char
*
foo
)
...
...
@@ -337,29 +338,26 @@ mvar_t *mvar_InfoSetNew( char *name, input_thread_t *p_input )
return
s
;
}
mvar_t
*
mvar_ObjectSetNew
(
intf_thread_t
*
p_intf
,
char
*
psz_name
,
const
char
*
psz_capability
)
mvar_t
*
mvar_ServicesSetNew
(
intf_thread_t
*
p_intf
,
char
*
psz_name
)
{
VLC_UNUSED
(
p_intf
);
mvar_t
*
s
=
mvar_New
(
psz_name
,
"set"
);
size_t
i
;
char
**
longnames
;
char
**
names
=
vlc_sd_GetNames
(
p_intf
,
&
longnames
,
NULL
);
if
(
names
==
NULL
)
goto
out
;
module_t
**
p_list
=
module_list_get
(
NULL
);
for
(
i
=
0
;
p_list
[
i
];
i
++
)
for
(
size_t
i
=
0
;
names
[
i
];
i
++
)
{
module_t
*
p_parser
=
p_list
[
i
];
if
(
module_provides
(
p_parser
,
psz_capability
)
)
{
mvar_t
*
sd
=
mvar_New
(
"sd"
,
module_get_object
(
p_parser
)
);
mvar_AppendNewVar
(
sd
,
"name"
,
module_get_name
(
p_parser
,
true
)
);
mvar_AppendVar
(
s
,
sd
);
}
mvar_t
*
sd
=
mvar_New
(
"sd"
,
names
[
i
]
);
mvar_AppendNewVar
(
sd
,
"name"
,
longnames
[
i
]
);
mvar_AppendVar
(
s
,
sd
);
free
(
names
[
i
]
);
free
(
longnames
[
i
]
);
}
module_list_free
(
p_list
);
free
(
longnames
);
free
(
names
);
out:
return
s
;
}
...
...
share/http/dialogs/playlist
View file @
2088087d
...
...
@@ -77,9 +77,8 @@ This dialog needs the following dialogs to be fully functional: <none>
<span
class=
"btn_text"
>
Services Discovery
</span>
</button>
<div
id=
"menu_sd"
class=
"menu"
>
<vlc
id=
"rpn"
param1=
"services_discovery"
/>
<vlc
id=
"foreach"
param1=
"sd"
param2=
"object"
/>
<button
onclick=
"pl_sd('<vlc id="
value
"
param1=
"sd"
/>
');hide_menu('menu_sd');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" class="menuout" title="Toggle
<vlc
id=
"value"
param1=
"sd.name"
/>
" >
<vlc
id=
"value"
param1=
"sd.name"
/></button><br/>
<vlc
id=
"foreach"
param1=
"sd"
param2=
"services"
/>
<button
onclick=
"pl_sd('<vlc id="
value
"
param1=
"sd value url_encode"
/>
');hide_menu('menu_sd');" onmouseover="setclass(this,'menuover');" onmouseout="setclass(this,'menuout');" class="menuout" title="Toggle
<vlc
id=
"value"
param1=
"sd.name"
/>
" >
<vlc
id=
"value"
param1=
"sd.name"
/></button><br/>
<vlc
id=
"end"
/>
</div>
</td>
...
...
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