Commit aefcff5d authored by Clément Stenac's avatar Clément Stenac

* all: as announce calls non-standard functions (SLP), remove it from

src, and build it in the stream_out_standard module to avoid a link
parent 1b9c64b1
...@@ -87,7 +87,6 @@ HEADERS_include = \ ...@@ -87,7 +87,6 @@ HEADERS_include = \
include/os_specific.h \ include/os_specific.h \
include/stream_control.h \ include/stream_control.h \
include/stream_output.h \ include/stream_output.h \
include/announce.h \
include/variables.h \ include/variables.h \
include/video_output.h \ include/video_output.h \
include/vlc_common.h \ include/vlc_common.h \
...@@ -315,7 +314,6 @@ SOURCES_libvlc_common = \ ...@@ -315,7 +314,6 @@ SOURCES_libvlc_common = \
src/audio_output/output.c \ src/audio_output/output.c \
src/audio_output/intf.c \ src/audio_output/intf.c \
src/stream_output/stream_output.c \ src/stream_output/stream_output.c \
src/stream_output/announce.c \
src/misc/mtime.c \ src/misc/mtime.c \
src/misc/modules.c \ src/misc/modules.c \
src/misc/threads.c \ src/misc/threads.c \
......
dnl Autoconf settings for vlc dnl Autoconf settings for vlc
dnl $Id: configure.ac,v 1.58 2003/08/13 23:26:55 gbazin Exp $ dnl $Id: configure.ac,v 1.59 2003/08/14 20:02:55 zorglub Exp $
AC_INIT(vlc,0.6.3-cvs) AC_INIT(vlc,0.6.3-cvs)
...@@ -2836,7 +2836,7 @@ then ...@@ -2836,7 +2836,7 @@ then
then then
AX_ADD_PLUGINS([slp]) AX_ADD_PLUGINS([slp])
AX_ADD_LDFLAGS([slp],[-lslp]) AX_ADD_LDFLAGS([slp],[-lslp])
AX_ADD_LDFLAGS([vlc],[-lslp]) AX_ADD_LDFLAGS([stream_out_standard],[-lslp])
fi fi
else else
AC_MSG_CHECKING(for slp headers in ${with_slp}) AC_MSG_CHECKING(for slp headers in ${with_slp})
...@@ -2846,7 +2846,7 @@ then ...@@ -2846,7 +2846,7 @@ then
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
AX_ADD_PLUGINS([slp]) AX_ADD_PLUGINS([slp])
AX_ADD_LDFLAGS([slp],[-L${with_slp} -lslp]) AX_ADD_LDFLAGS([slp],[-L${with_slp} -lslp])
AX_ADD_LDFLAGS([vlc],[-L${with_slp} -lslp]) AX_ADD_LDFLAGS([stream_out_standard],[-L${with_slp} -lslp])
AX_ADD_CPPFLAGS([slp],[-I${with_slp}]) AX_ADD_CPPFLAGS([slp],[-I${with_slp}])
AC_DEFINE(HAVE_SLP_H) AC_DEFINE(HAVE_SLP_H)
else else
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions * Collection of useful common types and macros definitions
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vlc_common.h,v 1.72 2003/08/14 11:47:32 gbazin Exp $ * $Id: vlc_common.h,v 1.73 2003/08/14 20:02:55 zorglub Exp $
* *
* Authors: Samuel Hocevar <sam@via.ecp.fr> * Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr> * Vincent Seguin <seguin@via.ecp.fr>
...@@ -263,8 +263,8 @@ typedef struct sout_mux_t sout_mux_t; ...@@ -263,8 +263,8 @@ typedef struct sout_mux_t sout_mux_t;
typedef struct sout_stream_t sout_stream_t; typedef struct sout_stream_t sout_stream_t;
typedef struct sout_cfg_t sout_cfg_t; typedef struct sout_cfg_t sout_cfg_t;
typedef struct sout_format_t sout_format_t; typedef struct sout_format_t sout_format_t;
typedef struct sap_session_t sap_session_t; /*typedef struct sap_session_t sap_session_t;
typedef struct slp_session_t slp_session_t; typedef struct slp_session_t slp_session_t;*/
/* Decoders */ /* Decoders */
typedef struct decoder_fifo_t decoder_fifo_t; typedef struct decoder_fifo_t decoder_fifo_t;
......
SOURCES_stream_out_dummy = dummy.c SOURCES_stream_out_dummy = dummy.c
SOURCES_stream_out_standard = standard.c SOURCES_stream_out_standard = standard.c \
announce.c
SOURCES_stream_out_transcode = transcode.c SOURCES_stream_out_transcode = transcode.c
SOURCES_stream_out_duplicate = duplicate.c SOURCES_stream_out_duplicate = duplicate.c
SOURCES_stream_out_es = es.c SOURCES_stream_out_es = es.c
......
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
* and the one which is after. * and the one which is after.
* NULL is returned if delim is not found * NULL is returned if delim is not found
****************************************************************************/ ****************************************************************************/
static char * split( char *psz_in, char *psz_out1, char *psz_out2, char delim) static char * split( char *psz_in, char *psz_out1, char *psz_out2, char delim)
{ {
unsigned int i_count = 0; /* pos in input string */ unsigned int i_count = 0; /* pos in input string */
...@@ -129,9 +128,11 @@ static char * split( char *psz_in, char *psz_out1, char *psz_out2, char delim) ...@@ -129,9 +128,11 @@ static char * split( char *psz_in, char *psz_out1, char *psz_out2, char delim)
/***************************************************************************** /*****************************************************************************
* sout_SAPNew: Creates a SAP Session * sout_SAPNew: Creates a SAP Session
*****************************************************************************/ *****************************************************************************/
sap_session_t * sout_SAPNew ( sout_instance_t *p_sout, char * psz_url_arg, sap_session_t * sout_SAPNew ( sout_instance_t *p_sout,
char * psz_name_arg, int ip_version, char * psz_url_arg,
char * psz_v6_scope ) char * psz_name_arg,
int ip_version,
char * psz_v6_scope )
{ {
sap_session_t *p_sap; /* The SAP structure */ sap_session_t *p_sap; /* The SAP structure */
module_t *p_network; /* Network module */ module_t *p_network; /* Network module */
...@@ -400,7 +401,7 @@ void sout_SAPSend( sout_instance_t *p_sout, sap_session_t * p_sap ) ...@@ -400,7 +401,7 @@ void sout_SAPSend( sout_instance_t *p_sout, sap_session_t * p_sap )
/***************************************************************************** /*****************************************************************************
* sout_SLPBuildName: Builds a service name according to SLP standard * sout_SLPBuildName: Builds a service name according to SLP standard
*****************************************************************************/ *****************************************************************************/
char * sout_SLPBuildName(char *psz_url,char *psz_name) static char * sout_SLPBuildName(char *psz_url,char *psz_name)
{ {
char *psz_service; char *psz_service;
unsigned int i_size; unsigned int i_size;
...@@ -424,7 +425,7 @@ char * sout_SLPBuildName(char *psz_url,char *psz_name) ...@@ -424,7 +425,7 @@ char * sout_SLPBuildName(char *psz_url,char *psz_name)
* sout_SLPReport: Reporting function. Unused at the moment but needed * sout_SLPReport: Reporting function. Unused at the moment but needed
*****************************************************************************/ *****************************************************************************/
#ifdef HAVE_SLP_H #ifdef HAVE_SLP_H
void sout_SLPReport(SLPHandle slp_handle,SLPError slp_error,void* cookie) static void sout_SLPReport(SLPHandle slp_handle,SLPError slp_error,void* cookie)
{ {
} }
#endif #endif
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* announce.h : Session announcement * announce.h : Session announcement
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: announce.h,v 1.9 2003/08/13 19:38:27 gbazin Exp $ * $Id: announce.h,v 1.1 2003/08/14 20:02:55 zorglub Exp $
* *
* Authors: Clment Stenac <zorglub@via.ecp.fr> * Authors: Clment Stenac <zorglub@via.ecp.fr>
* *
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
*****************************************************************************/ *****************************************************************************/
/***************************************************************************** /*****************************************************************************
* sap_session_t: SAP Session descriptor * Preamble
*****************************************************************************/ *****************************************************************************/
#if defined( UNDER_CE ) #if defined( UNDER_CE )
...@@ -40,11 +40,17 @@ ...@@ -40,11 +40,17 @@
# endif # endif
#endif #endif
#ifdef HAVE_SLP_H
# include <slp.h>
#endif
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
#endif #endif
/*****************************************************************************
* sap_session_t: SAP Session descriptor
*****************************************************************************/
struct sap_session_t struct sap_session_t
{ {
char psz_url[256]; char psz_url[256];
...@@ -56,20 +62,33 @@ struct sap_session_t ...@@ -56,20 +62,33 @@ struct sap_session_t
int i_ip_version; int i_ip_version;
}; };
typedef struct sap_session_t sap_session_t;
/*****************************************************************************
* slp_session_t: SLP Session descriptor
*****************************************************************************/
struct slp_session_t struct slp_session_t
{ {
char *psz_url; char *psz_url;
char *psz_name; char *psz_name;
}; };
typedef struct slp_session_t slp_session_t;
/***************************************************************************** /*****************************************************************************
* Prototypes * Prototypes
*****************************************************************************/ *****************************************************************************/
sap_session_t * sout_SAPNew (sout_instance_t *,
char *, char* , int, char *);
void sout_SAPDelete (sout_instance_t *,sap_session_t*);
void sout_SAPSend (sout_instance_t *,sap_session_t *);
int sout_SLPReg (sout_instance_t *,char *,char *);
int sout_SLPDereg (sout_instance_t *,char *,char *);
/*
VLC_EXPORT( sap_session_t *, sout_SAPNew, ( sout_instance_t *,char * , char * , int , char *) ); VLC_EXPORT( sap_session_t *, sout_SAPNew, ( sout_instance_t *,char * , char * , int , char *) );
VLC_EXPORT( void, sout_SAPSend, ( sout_instance_t *,sap_session_t *) ); VLC_EXPORT( void, sout_SAPSend, ( sout_instance_t *,sap_session_t *) );
VLC_EXPORT( void, sout_SAPDelete, ( sout_instance_t *,sap_session_t * ) ); VLC_EXPORT( void, sout_SAPDelete, ( sout_instance_t *,sap_session_t * ) );
VLC_EXPORT( int, sout_SLPReg, (sout_instance_t*,char*,char*) ); VLC_EXPORT( int, sout_SLPReg, (sout_instance_t*,char*,char*) );
VLC_EXPORT( int, sout_SLPDereg, (sout_instance_t*,char*,char*) ); VLC_EXPORT( int, sout_SLPDereg, (sout_instance_t*,char*,char*) );*/
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* standard.c * standard.c
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: standard.c,v 1.11 2003/08/13 21:15:42 gbazin Exp $ * $Id: standard.c,v 1.12 2003/08/14 20:02:55 zorglub Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc/sout.h> #include <vlc/sout.h>
#include <announce.h> #include "announce.h"
#define DEFAULT_IPV6_SCOPE "8" #define DEFAULT_IPV6_SCOPE "8"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions * modules.c : Builtin and plugin modules management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.127 2003/08/01 00:00:50 fenrir Exp $ * $Id: modules.c,v 1.128 2003/08/14 20:02:55 zorglub Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com> * Ethan C. Baldridge <BaldridgeE@cadmus.com>
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
#include "aout_internal.h" #include "aout_internal.h"
#include "stream_output.h" #include "stream_output.h"
#include "announce.h" /*#include "announce.h"*/
#include "osd.h" #include "osd.h"
#include "iso_lang.h" #include "iso_lang.h"
......
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