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
bf343c29
Commit
bf343c29
authored
Apr 24, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document vlc_services_discovery.h
parent
ebbaa680
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
17 deletions
+24
-17
include/vlc_services_discovery.h
include/vlc_services_discovery.h
+23
-16
src/playlist/services_discovery.c
src/playlist/services_discovery.c
+1
-1
No files found.
include/vlc_services_discovery.h
View file @
bf343c29
...
...
@@ -30,7 +30,7 @@
/**
* \file
* This file
functions and structures for service discovery
in vlc
* This file
lists functions and structures for service discovery (SD)
in vlc
*/
# ifdef __cplusplus
...
...
@@ -40,20 +40,24 @@ extern "C" {
/*
* @{
*/
struct
services_discovery_t
{
VLC_COMMON_MEMBERS
module_t
*
p_module
;
module_t
*
p_module
;
/**< Loaded module */
vlc_event_manager_t
event_manager
;
/* Accessed through Setters for non class function */
/**< Event manager
/* You should access it through setters, outside of the core */
vlc_event_manager_t
event_manager
;
char
*
psz_name
;
config_chain_t
*
p_cfg
;
char
*
psz_name
;
/**< Main name of the SD */
config_chain_t
*
p_cfg
;
/**< Configuration for the SD */
/** Control function
* \see services_discovery_command_e
*/
int
(
*
pf_control
)
(
services_discovery_t
*
,
int
,
va_list
);
services_discovery_sys_t
*
p_sys
;
services_discovery_sys_t
*
p_sys
;
/**< Custom private data */
};
/**
...
...
@@ -61,10 +65,10 @@ struct services_discovery_t
*/
enum
services_discovery_category_e
{
SD_CAT_DEVICES
=
1
,
SD_CAT_LAN
,
SD_CAT_INTERNET
,
SD_CAT_MYCOMPUTER
SD_CAT_DEVICES
=
1
,
/**< Devices, like portable music players */
SD_CAT_LAN
,
/**< LAN/WAN services, like Upnp or SAP */
SD_CAT_INTERNET
,
/**< Internet or Website channels services */
SD_CAT_MYCOMPUTER
/**< Computer services, like Discs or Apps */
};
/**
...
...
@@ -81,7 +85,7 @@ enum services_discovery_command_e
*/
enum
services_discovery_capability_e
{
SD_CAP_SEARCH
=
1
SD_CAP_SEARCH
=
1
/**< One can search in the SD */
};
/**
...
...
@@ -89,10 +93,10 @@ enum services_discovery_capability_e
*/
typedef
struct
{
char
*
psz_short_desc
;
char
*
psz_icon_url
;
char
*
psz_url
;
int
i_capabilities
;
char
*
psz_short_desc
;
/**< The short description, human-readable */
char
*
psz_icon_url
;
/**< URL to the icon that represents it */
char
*
psz_url
;
/**< URL for the service */
int
i_capabilities
;
/**< \see services_discovery_capability_e */
}
services_discovery_descriptor_t
;
/***********************************************************************
...
...
@@ -126,6 +130,9 @@ VLC_EXPORT( bool, vlc_sd_Start, ( services_discovery_t * ) );
VLC_EXPORT
(
void
,
vlc_sd_Stop
,
(
services_discovery_t
*
)
);
VLC_EXPORT
(
void
,
vlc_sd_Destroy
,
(
services_discovery_t
*
)
);
/**
* Helper to stop and destroy the Service Discovery
*/
static
inline
void
vlc_sd_StopAndDestroy
(
services_discovery_t
*
p_this
)
{
vlc_sd_Stop
(
p_this
);
...
...
src/playlist/services_discovery.c
View file @
bf343c29
...
...
@@ -131,7 +131,7 @@ services_discovery_t *vlc_sd_Create( vlc_object_t *p_super,
}
/***********************************************************************
* St
op
* St
art
***********************************************************************/
bool
vlc_sd_Start
(
services_discovery_t
*
p_sd
)
{
...
...
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