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
39f6a7cf
Commit
39f6a7cf
authored
Dec 01, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Dec 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsm: don't export too common functions
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
71e99db8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
modules/access/dsm/access.c
modules/access/dsm/access.c
+7
-3
modules/access/dsm/common.h
modules/access/dsm/common.h
+3
-6
modules/access/dsm/sd.c
modules/access/dsm/sd.c
+3
-3
No files found.
modules/access/dsm/access.c
View file @
39f6a7cf
...
...
@@ -42,6 +42,10 @@
/*****************************************************************************
* Module descriptor
*****************************************************************************/
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#define vlc_sd_probe_Open bdsm_sd_probe_Open
#define USER_TEXT N_("SMB user name")
#define USER_LONGTEXT N_("User name that will " \
...
...
@@ -74,7 +78,7 @@ vlc_module_begin ()
set_category
(
CAT_PLAYLIST
)
set_subcategory
(
SUBCAT_PLAYLIST_SD
)
set_capability
(
"services_discovery"
,
0
)
set_callbacks
(
SdOpen
,
SdClose
)
set_callbacks
(
bdsm_SdOpen
,
bdsm_
SdClose
)
VLC_SD_PROBE_SUBMODULE
...
...
@@ -108,7 +112,7 @@ static void bdsm_destroy( access_sys_t *p_sys );
/*****************************************************************************
* Open: Initialize module's data structures and libdsm
*****************************************************************************/
int
Open
(
vlc_object_t
*
p_this
)
static
int
Open
(
vlc_object_t
*
p_this
)
{
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
;
...
...
@@ -166,7 +170,7 @@ int Open( vlc_object_t *p_this )
/*****************************************************************************
* Close: free unused data structures
*****************************************************************************/
void
Close
(
vlc_object_t
*
p_this
)
static
void
Close
(
vlc_object_t
*
p_this
)
{
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
...
...
modules/access/dsm/common.h
View file @
39f6a7cf
...
...
@@ -29,12 +29,9 @@
#include <vlc_services_discovery.h>
#include <vlc_url.h>
int
Open
(
vlc_object_t
*
);
void
Close
(
vlc_object_t
*
);
int
SdOpen
(
vlc_object_t
*
);
void
SdClose
(
vlc_object_t
*
);
int
vlc_sd_probe_Open
(
vlc_object_t
*
);
int
bdsm_SdOpen
(
vlc_object_t
*
);
void
bdsm_SdClose
(
vlc_object_t
*
);
int
bdsm_sd_probe_Open
(
vlc_object_t
*
);
int
BrowserInit
(
access_t
*
p_access
);
...
...
modules/access/dsm/sd.c
View file @
39f6a7cf
...
...
@@ -37,7 +37,7 @@ struct services_discovery_sys_t
netbios_ns
*
ns
;
};
int
vlc
_sd_probe_Open
(
vlc_object_t
*
p_this
)
int
bdsm
_sd_probe_Open
(
vlc_object_t
*
p_this
)
{
vlc_probe_t
*
p_probe
=
(
vlc_probe_t
*
)
p_this
;
...
...
@@ -47,7 +47,7 @@ int vlc_sd_probe_Open (vlc_object_t *p_this)
return
VLC_PROBE_CONTINUE
;
}
int
SdOpen
(
vlc_object_t
*
p_this
)
int
bdsm_
SdOpen
(
vlc_object_t
*
p_this
)
{
services_discovery_t
*
p_sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_sys_t
*
p_sys
=
malloc
(
sizeof
(
*
p_sys
));
...
...
@@ -97,7 +97,7 @@ int SdOpen (vlc_object_t *p_this)
return
VLC_EGENERIC
;
}
void
SdClose
(
vlc_object_t
*
p_this
)
void
bdsm_
SdClose
(
vlc_object_t
*
p_this
)
{
services_discovery_t
*
sd
=
(
services_discovery_t
*
)
p_this
;
services_discovery_sys_t
*
p_sys
=
sd
->
p_sys
;
...
...
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