]> git.sesse.net Git - vlc/blob - modules/access/mms/mmsh.h
Copyright fixes
[vlc] / modules / access / mms / mmsh.h
1 /*****************************************************************************
2  * mmsh.h:
3  *****************************************************************************
4  * Copyright (C) 2001, 2002 VideoLAN (Centrale Réseaux) and its contributors
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 typedef struct
25 {
26     uint16_t i_type;
27     uint16_t i_size;
28
29     uint32_t i_sequence;
30     uint16_t i_unknown;
31
32     uint16_t i_size2;
33
34     int      i_data;
35     uint8_t  *p_data;
36
37 } chunk_t;
38
39 #define BUFFER_SIZE 65536
40 struct access_sys_t
41 {
42     int             i_proto;
43
44     int             fd;
45     vlc_url_t       url;
46
47     int             i_request_context;
48
49     uint8_t         buffer[BUFFER_SIZE + 1];
50
51     vlc_bool_t      b_broadcast;
52
53     uint8_t         *p_header;
54     int             i_header;
55
56     uint8_t         *p_packet;
57     uint32_t        i_packet_sequence;
58     unsigned int    i_packet_used;
59     unsigned int    i_packet_length;
60
61     int64_t         i_start;
62
63     asf_header_t    asfh;
64     guid_t          guid;
65 };