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
d1458c92
Commit
d1458c92
authored
Feb 11, 2016
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libVLC: rename libvlc_media_discoverer_services_get
to libvlc_media_discoverer_list_get and do the same for release
parent
6dc1fc75
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
26 deletions
+27
-26
NEWS
NEWS
+1
-1
include/vlc/libvlc_media_discoverer.h
include/vlc/libvlc_media_discoverer.h
+15
-14
lib/libvlc.sym
lib/libvlc.sym
+2
-2
lib/media_discoverer.c
lib/media_discoverer.c
+9
-9
No files found.
NEWS
View file @
d1458c92
...
...
@@ -185,7 +185,7 @@ libVLC:
* Add a new libvlc dialog API to forward dialogs requests to the applications:
libvlc_dialog_set_context, libvlc_dialog_get_context, libvlc_dialog_set_callbacks,
libvlc_dialog_dismiss, libvlc_dialog_post_action, libvlc_dialog_post_login
* Add libvlc_media_discoverer_
services_get to return a list of media discoverer service
s
* Add libvlc_media_discoverer_
list_get|release to list the media discoverer
s
Logging
* Support for the SystemD Journal
...
...
include/vlc/libvlc_media_discoverer.h
View file @
d1458c92
...
...
@@ -31,8 +31,8 @@ extern "C" {
# endif
/**
* Category of a media discoverer
service
* \see libvlc_media_discoverer_
services
_get()
* Category of a media discoverer
* \see libvlc_media_discoverer_
list
_get()
*/
typedef
enum
{
/** devices, like portable music player */
...
...
@@ -46,14 +46,14 @@ typedef enum {
}
libvlc_media_discoverer_category
;
/**
* Media discoverer
service
* \see libvlc_media_discoverer_
services
_get()
* Media discoverer
description
* \see libvlc_media_discoverer_
list
_get()
*/
typedef
struct
{
char
*
psz_name
;
char
*
psz_longname
;
libvlc_media_discoverer_category
i_cat
;
}
libvlc_media_discoverer_
service
;
}
libvlc_media_discoverer_
description
;
/** \defgroup libvlc_media_discoverer LibVLC media discovery
* \ingroup libvlc
...
...
@@ -92,7 +92,8 @@ libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst,
* \see libvlc_media_discoverer_start
*
* \param p_inst libvlc instance
* \param psz_name service name
* \param psz_name service name; use libvlc_media_discoverer_list_get() to get
* a list of the discoverer names available in this libVLC instance
* \return media discover object or NULL in case of error
* \version LibVLC 3.0.0 or later
*/
...
...
@@ -104,7 +105,7 @@ libvlc_media_discoverer_new( libvlc_instance_t * p_inst,
* Start media discovery.
*
* To stop it, call libvlc_media_discoverer_stop() or
* libvlc_media_discoverer_release() directly.
* libvlc_media_discoverer_
list_
release() directly.
*
* \see libvlc_media_discoverer_stop
*
...
...
@@ -178,29 +179,29 @@ LIBVLC_API int
* \param p_inst libvlc instance
* \param i_cat category of services to fetch
* \param ppp_services address to store an allocated array of media discoverer
* services (must be freed with libvlc_media_discoverer_
services
_release() by
* services (must be freed with libvlc_media_discoverer_
list
_release() by
* the caller) [OUT]
*
* \return the number of media discoverer services (zero on error)
*/
LIBVLC_API
unsigned
int
libvlc_media_discoverer_
services
_get
(
libvlc_instance_t
*
p_inst
,
libvlc_media_discoverer_category
i_cat
,
libvlc_media_discoverer_service
***
ppp_services
);
libvlc_media_discoverer_
list
_get
(
libvlc_instance_t
*
p_inst
,
libvlc_media_discoverer_category
i_cat
,
libvlc_media_discoverer_description
***
ppp_services
);
/**
* Release an array of media discoverer services
*
* \version LibVLC 3.0.0 and later.
*
* \see libvlc_media_discoverer_
services
_get()
* \see libvlc_media_discoverer_
list
_get()
*
* \param pp_services array to release
* \param i_count number of elements in the array
*/
LIBVLC_API
void
libvlc_media_discoverer_
services_release
(
libvlc_media_discoverer_service
**
pp_services
,
unsigned
int
i_count
);
libvlc_media_discoverer_
list_release
(
libvlc_media_discoverer_description
**
pp_services
,
unsigned
int
i_count
);
/**@} */
...
...
lib/libvlc.sym
View file @
d1458c92
...
...
@@ -84,8 +84,8 @@ libvlc_media_discoverer_media_list
libvlc_media_discoverer_new
libvlc_media_discoverer_new_from_name
libvlc_media_discoverer_release
libvlc_media_discoverer_
services
_get
libvlc_media_discoverer_
services
_release
libvlc_media_discoverer_
list
_get
libvlc_media_discoverer_
list
_release
libvlc_media_discoverer_start
libvlc_media_discoverer_stop
libvlc_media_duplicate
...
...
lib/media_discoverer.c
View file @
d1458c92
...
...
@@ -387,8 +387,8 @@ libvlc_media_discoverer_is_running( libvlc_media_discoverer_t * p_mdis )
}
void
libvlc_media_discoverer_
services_release
(
libvlc_media_discoverer_service
**
pp_services
,
unsigned
int
i_count
)
libvlc_media_discoverer_
list_release
(
libvlc_media_discoverer_description
**
pp_services
,
unsigned
int
i_count
)
{
if
(
i_count
>
0
)
{
...
...
@@ -403,9 +403,9 @@ libvlc_media_discoverer_services_release( libvlc_media_discoverer_service **pp_s
}
unsigned
int
libvlc_media_discoverer_
services
_get
(
libvlc_instance_t
*
p_inst
,
libvlc_media_discoverer_category
i_cat
,
libvlc_media_discoverer_service
***
ppp_services
)
libvlc_media_discoverer_
list
_get
(
libvlc_instance_t
*
p_inst
,
libvlc_media_discoverer_category
i_cat
,
libvlc_media_discoverer_description
***
ppp_services
)
{
assert
(
p_inst
!=
NULL
&&
ppp_services
!=
NULL
);
...
...
@@ -452,7 +452,7 @@ libvlc_media_discoverer_services_get( libvlc_instance_t *p_inst,
i_nb_services
++
;
}
libvlc_media_discoverer_
service
**
pp_services
=
NULL
,
*
p_services
=
NULL
;
libvlc_media_discoverer_
description
**
pp_services
=
NULL
,
*
p_services
=
NULL
;
if
(
i_nb_services
>
0
)
{
/* Double alloc here, so that the caller iterates through pointers of
...
...
@@ -460,9 +460,9 @@ libvlc_media_discoverer_services_get( libvlc_instance_t *p_inst,
* without breaking the API. */
pp_services
=
malloc
(
i_nb_services
*
sizeof
(
libvlc_media_discoverer_
service
*
)
);
*
sizeof
(
libvlc_media_discoverer_
description
*
)
);
p_services
=
malloc
(
i_nb_services
*
sizeof
(
libvlc_media_discoverer_
service
)
);
*
sizeof
(
libvlc_media_discoverer_
description
)
);
if
(
pp_services
==
NULL
||
p_services
==
NULL
)
{
free
(
pp_services
);
...
...
@@ -480,7 +480,7 @@ libvlc_media_discoverer_services_get( libvlc_instance_t *p_inst,
ppsz_name
=
ppsz_names
;
p_category
=
p_categories
;
unsigned
int
i_service_idx
=
0
;
libvlc_media_discoverer_
service
*
p_service
=
p_services
;
libvlc_media_discoverer_
description
*
p_service
=
p_services
;
for
(
;
*
ppsz_name
!=
NULL
;
ppsz_name
++
,
ppsz_longname
++
,
p_category
++
,
p_service
++
)
{
...
...
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