Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
dccd9472
Commit
dccd9472
authored
Dec 20, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_sd_GetNames: add object parameter
parent
f2d0e53b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
6 deletions
+12
-6
include/vlc_services_discovery.h
include/vlc_services_discovery.h
+3
-1
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+1
-1
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/selector.cpp
+1
-1
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+1
-1
modules/misc/lua/libs/sd.c
modules/misc/lua/libs/sd.c
+3
-1
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+3
-1
No files found.
include/vlc_services_discovery.h
View file @
dccd9472
...
...
@@ -56,7 +56,9 @@ struct services_discovery_t
/* Get the services discovery modules names to use in Create(), in a null
* terminated string array. Array and string must be freed after use. */
VLC_EXPORT
(
char
**
,
vlc_sd_GetNames
,
(
char
***
pppsz_longnames
)
);
VLC_EXPORT
(
char
**
,
vlc_sd_GetNames
,
(
vlc_object_t
*
,
char
***
)
);
#define vlc_sd_GetNames(obj, pln) \
vlc_sd_GetNames(VLC_OBJECT(obj), pln)
/* Creation of a service_discovery object */
VLC_EXPORT
(
services_discovery_t
*
,
vlc_sd_Create
,
(
vlc_object_t
*
)
);
...
...
modules/gui/macosx/playlist.m
View file @
dccd9472
...
...
@@ -419,7 +419,7 @@
o_tc_sortColumn
=
nil
;
char
**
ppsz_name
;
char
**
ppsz_services
=
vlc_sd_GetNames
(
&
ppsz_name
);
char
**
ppsz_services
=
vlc_sd_GetNames
(
VLCIntf
,
&
ppsz_name
);
if
(
!
ppsz_services
)
{
pl_Release
(
VLCIntf
);
...
...
modules/gui/qt4/components/playlist/selector.cpp
View file @
dccd9472
...
...
@@ -255,7 +255,7 @@ void PLSelector::createItems()
msrc
->
setExpanded
(
true
);
char
**
ppsz_longnames
;
char
**
ppsz_names
=
vlc_sd_GetNames
(
&
ppsz_longnames
);
char
**
ppsz_names
=
vlc_sd_GetNames
(
THEPL
,
&
ppsz_longnames
);
if
(
!
ppsz_names
)
return
;
...
...
modules/gui/qt4/menus.cpp
View file @
dccd9472
...
...
@@ -660,7 +660,7 @@ QMenu *QVLCMenu::SDMenu( intf_thread_t *p_intf, QWidget *parent )
menu
->
setTitle
(
qtr
(
I_PL_SD
)
);
char
**
ppsz_longnames
;
char
**
ppsz_names
=
vlc_sd_GetNames
(
&
ppsz_longnames
);
char
**
ppsz_names
=
vlc_sd_GetNames
(
p_intf
,
&
ppsz_longnames
);
if
(
!
ppsz_names
)
return
menu
;
...
...
modules/misc/lua/libs/sd.c
View file @
dccd9472
...
...
@@ -49,8 +49,10 @@
*****************************************************************************/
static
int
vlclua_sd_get_services_names
(
lua_State
*
L
)
{
playlist_t
*
p_playlist
=
vlclua_get_playlist_internal
(
L
);
char
**
ppsz_longnames
;
char
**
ppsz_names
=
vlc_sd_GetNames
(
&
ppsz_longnames
);
char
**
ppsz_names
=
vlc_sd_GetNames
(
p_playlist
,
&
ppsz_longnames
);
vlclua_release_playlist_internal
(
p_playlist
);
if
(
!
ppsz_names
)
return
0
;
...
...
src/playlist/services_discovery.c
View file @
dccd9472
...
...
@@ -50,10 +50,12 @@ static void services_discovery_Destructor ( vlc_object_t *p_obj );
* That's how the playlist get's Service Discovery information
*/
#undef vlc_sd_GetNames
/**
* Gets the list of available services discovery plugins.
*/
char
**
vlc_sd_GetNames
(
char
***
pppsz_longnames
)
char
**
vlc_sd_GetNames
(
vlc_object_t
*
obj
,
char
***
pppsz_longnames
)
{
return
module_GetModulesNamesForCapability
(
"services_discovery"
,
pppsz_longnames
);
...
...
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