]> git.sesse.net Git - vlc/blob - modules/access/mms/mmsh.h
update module LIST file.
[vlc] / modules / access / mms / mmsh.h
1 /*****************************************************************************
2  * mmsh.h:
3  *****************************************************************************
4  * Copyright (C) 2001, 2002 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef _MMSH_H_
25 #define _MMSH_H_ 1
26
27 typedef struct
28 {
29     uint16_t i_type;
30     uint16_t i_size;
31
32     uint32_t i_sequence;
33     uint16_t i_unknown;
34
35     uint16_t i_size2;
36
37     int      i_data;
38     uint8_t  *p_data;
39
40 } chunk_t;
41
42 #define BUFFER_SIZE 65536
43 struct access_sys_t
44 {
45     int             i_proto;
46
47     int             fd;
48     vlc_url_t       url;
49
50     vlc_bool_t      b_proxy;
51     vlc_url_t       proxy;
52
53     int             i_request_context;
54
55     uint8_t         buffer[BUFFER_SIZE + 1];
56
57     vlc_bool_t      b_broadcast;
58
59     uint8_t         *p_header;
60     int             i_header;
61
62     uint8_t         *p_packet;
63     uint32_t        i_packet_sequence;
64     unsigned int    i_packet_used;
65     unsigned int    i_packet_length;
66
67     int64_t         i_start;
68
69     asf_header_t    asfh;
70     guid_t          guid;
71 };
72
73 #endif