X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fstream_output%2Fstream_output.h;h=7745a9ebf18c6cfa9919bbc63f0e945fa7336bfc;hb=d7a21b12e9dc5e883e2401faa817fdf211372626;hp=6181d2933d1b6c6b619ffbc6ceb19ee59f11ec30;hpb=6d479b506f0a614d42d75f1389dce6d911bcf492;p=vlc diff --git a/src/stream_output/stream_output.h b/src/stream_output/stream_output.h index 6181d2933d..7745a9ebf1 100644 --- a/src/stream_output/stream_output.h +++ b/src/stream_output/stream_output.h @@ -2,7 +2,7 @@ * stream_output.h : internal stream output ***************************************************************************** * Copyright (C) 2002-2005 the VideoLAN team - * $Id: stream_output.h 16916 2006-10-01 16:08:37Z dionoea $ + * $Id$ * * Authors: Christophe Massiot * Laurent Aimar @@ -24,6 +24,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. ***************************************************************************/ +#if defined(__PLUGIN__) || defined(__BUILTIN__) || !defined(__LIBVLC__) +# error This header file can only be included from LibVLC. +#endif + #ifndef VLC_SRC_STREAMOUT_H # define VLC_SRC_STREAMOUT_H 1 @@ -60,7 +64,7 @@ struct sap_handler_t sap_session_t **pp_sessions; sap_address_t **pp_addresses; - vlc_bool_t b_control; + bool b_control; int i_sessions; int i_addresses; @@ -75,22 +79,13 @@ struct sap_handler_t struct session_descriptor_t { - char *psz_name; - char *psz_group; - - char *description; - char *url; // meta URL for SAP, potentially real URL for other cases - char *email; - char *phone; - struct sockaddr_storage orig; socklen_t origlen; struct sockaddr_storage addr; socklen_t addrlen; - char *sdpformat; // format suitable for SDP char *psz_sdp; - vlc_bool_t b_ssm; + bool b_ssm; }; /* The main announce handler object */ @@ -101,32 +96,9 @@ struct announce_handler_t sap_handler_t *p_sap; }; -#define announce_HandlerCreate(a) __announce_HandlerCreate(VLC_OBJECT(a)) -announce_handler_t* __announce_HandlerCreate( vlc_object_t *); - -/* Private functions for the announce handler */ int announce_HandlerDestroy( announce_handler_t * ); -int announce_Register( announce_handler_t *p_announce, - session_descriptor_t *p_session, - announce_method_t *p_method ); -int announce_UnRegister( announce_handler_t *p_announce, - session_descriptor_t *p_session ); +/* Release it with vlc_object_release() */ sap_handler_t *announce_SAPHandlerCreate( announce_handler_t *p_announce ); -void announce_SAPHandlerDestroy( sap_handler_t *p_sap ); - -#include - -char *StartSDP (const char *name, const char *description, const char *url, - const char *email, const char *phone, - const struct sockaddr *orig, socklen_t origlen, - const struct sockaddr *addr, socklen_t addrlen); - -char *vAddSDPMedia (const char *type, int dport, const char *protocol, - unsigned pt, const char *rtpmap, - const char *fmtpfmt, va_list ap); -char *AddSDPMedia (const char *type, int dport, - const char *protocol, unsigned pt, const char *rtpmap, - const char *fmtpfmt, ...); #endif