Commit 39f6a7cf authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

dsm: don't export too common functions

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 71e99db8
......@@ -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;
......
......@@ -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 );
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment