X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Fmms%2Fmms.h;h=b78fac3c8c269037c89d4dbed2cafb7c667c5cdb;hb=23561f61564fab1141717adeee7d32e2249fa121;hp=aa77f32ce9a5d0991fb28032aeb4fd17b28301c1;hpb=e0c8d4ac2bc2a049b8736b1e572a952f6abf5d96;p=vlc diff --git a/modules/access/mms/mms.h b/modules/access/mms/mms.h index aa77f32ce9..b78fac3c8c 100644 --- a/modules/access/mms/mms.h +++ b/modules/access/mms/mms.h @@ -1,8 +1,8 @@ /***************************************************************************** * mms.h: MMS access plug-in ***************************************************************************** - * Copyright (C) 2001, 2002 VideoLAN - * $Id: mms.h,v 1.9 2003/04/20 19:29:43 fenrir Exp $ + * Copyright (C) 2001, 2002 the VideoLAN team + * $Id$ * * Authors: Laurent Aimar * @@ -18,48 +18,24 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ +#ifndef _MMS_H_ +#define _MMS_H_ 1 + #define MMS_PROTO_AUTO 0 #define MMS_PROTO_TCP 1 #define MMS_PROTO_UDP 2 #define MMS_PROTO_HTTP 3 - /* mmst and mmsu */ -int E_( MMSTUOpen ) ( input_thread_t * ); -void E_( MMSTUClose ) ( input_thread_t * ); +int E_( MMSTUOpen ) ( access_t * ); +void E_( MMSTUClose ) ( access_t * ); /* mmsh */ -int E_( MMSHOpen ) ( input_thread_t * ); -void E_( MMSHClose ) ( input_thread_t * ); - -static inline uint16_t GetWLE( uint8_t *p_buff ) -{ - return( (p_buff[0]) + ( p_buff[1] <<8 ) ); -} - -static inline uint32_t GetDWLE( uint8_t *p_buff ) -{ - return( p_buff[0] + ( p_buff[1] <<8 ) + - ( p_buff[2] <<16 ) + ( p_buff[3] <<24 ) ); -} - -#define FREE( p ) if( p ) { free( p ); (p) = NULL; } - -/* url: [/]host[:port][/path][@username[:password]] */ -typedef struct url_s -{ - char *psz_host; - int i_port; - - char *psz_path; - - char *psz_username; - char *psz_password; -} url_t; +int E_( MMSHOpen ) ( access_t * ); +void E_( MMSHClose ) ( access_t * ); -url_t *E_( url_new ) ( char * ); -void E_( url_free ) ( url_t * ); +#endif