comparison Plugins/Input/wma/libffwma/mms.h @ 1407:b94847e68f33 trunk

[svn] Newer libmms, from their CVS. Needs to be hooked up properly as it wants more arguments to its functions.
author chainsaw
date Sat, 15 Jul 2006 16:39:37 -0700
parents a63e0fdb3d1e
children f12d7e208b43
comparison
equal deleted inserted replaced
1406:f40d0496fda5 1407:b94847e68f33
1 /* 1 /*
2 * Copyright (C) 2000-2001 major mms 2 * Copyright (C) 2002-2003 the xine project
3 * 3 *
4 * This file is part of libmms 4 * This file is part of xine, a free video player.
5 * 5 *
6 * xine-mms is free software; you can redistribute it and/or modify 6 * xine is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or 8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version. 9 * (at your option) any later version.
10 * 10 *
11 * xine-mms is distributed in the hope that it will be useful, 11 * xine is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details. 14 * GNU General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU General Public License 16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software 17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19 * 19 *
20 * $Id: mms.h,v 1.11 2006/06/06 09:49:15 shawarma Exp $
21 *
20 * libmms public header 22 * libmms public header
21 */ 23 */
24
25 /* TODO/dexineification:
26 * + functions needed:
27 * - _x_io_*()
28 * - xine_malloc() [?]
29 * - xine_fast_memcpy() [?]
30 */
31
22 #ifndef HAVE_MMS_H 32 #ifndef HAVE_MMS_H
23 #define HAVE_MMS_H 33 #define HAVE_MMS_H
24 34
35 #include <inttypes.h>
36 #include <stdio.h>
37 #include <sys/types.h>
38
39 /* #include "xine_internal.h" */
40
41 #include "bswap.h"
42 #include "mmsio.h"
43
44 #ifdef __cplusplus
45 extern "C" {
46 #endif /* __cplusplus */
47
25 typedef struct mms_s mms_t; 48 typedef struct mms_s mms_t;
26 49
27 mms_t *mms_connect (const char *url); 50 mms_t* mms_connect (mms_io_t *io, void *data, const char *url, int bandwidth);
28 51
29 int mms_read (mms_t *this, char *data, int len); 52 int mms_read (mms_io_t *io, mms_t *instance, char *data, int len);
53 uint32_t mms_get_length (mms_t *instance);
54 void mms_close (mms_t *instance);
30 55
31 void mms_close (mms_t *this); 56 int mms_peek_header (mms_t *instance, char *data, int maxsize);
57
58 off_t mms_get_current_pos (mms_t *instance);
59
60 #ifdef __cplusplus
61 }
62 #endif /* __cplusplus */
32 63
33 #endif 64 #endif
34 65