]> git.sesse.net Git - vlc/blobdiff - modules/access/mms/mms.h
Fix a missing path for p_config->Release().
[vlc] / modules / access / mms / mms.h
index aa77f32ce9a5d0991fb28032aeb4fd17b28301c1..979de0e7bbd85c1127bfefae5534fb21935e68e4 100644 (file)
@@ -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 <fenrir@via.ecp.fr>
  *
  *
  * 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   MMSTUOpen   ( access_t * );
+void  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   MMSHOpen   ( access_t * );
+void  MMSHClose  ( access_t * );
 
-url_t *E_( url_new )  ( char * );
-void   E_( url_free ) ( url_t * );
+#endif