00001 /***************************************************************************** 00002 * mmsh.h: 00003 ***************************************************************************** 00004 * Copyright (C) 2001, 2002 the VideoLAN team 00005 * $Id$ 00006 * 00007 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00022 *****************************************************************************/ 00023 00024 #ifndef _MMSH_H_ 00025 #define _MMSH_H_ 1 00026 00027 typedef struct 00028 { 00029 uint16_t i_type; 00030 uint16_t i_size; 00031 00032 uint32_t i_sequence; 00033 uint16_t i_unknown; 00034 00035 uint16_t i_size2; 00036 00037 int i_data; 00038 uint8_t *p_data; 00039 00040 } chunk_t; 00041 00042 #define BUFFER_SIZE 65536 00043 struct access_sys_t 00044 { 00045 int i_proto; 00046 00047 int fd; 00048 vlc_url_t url; 00049 00050 bool b_proxy; 00051 vlc_url_t proxy; 00052 00053 int i_request_context; 00054 00055 uint8_t buffer[BUFFER_SIZE + 1]; 00056 00057 bool b_broadcast; 00058 00059 uint8_t *p_header; 00060 int i_header; 00061 00062 uint8_t *p_packet; 00063 uint32_t i_packet_sequence; 00064 unsigned int i_packet_used; 00065 unsigned int i_packet_length; 00066 00067 int64_t i_start; 00068 00069 asf_header_t asfh; 00070 guid_t guid; 00071 }; 00072 00073 #endif
1.5.1