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