1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 1999-2001 VideoLAN
5 * $Id: ninput.h,v 1.1 2003/08/01 00:00:12 fenrir Exp $
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
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.
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.
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 *****************************************************************************/
33 STREAM_CAN_SEEK, /* arg1= vlc_bool_t * res=cannot fail*/
34 STREAM_CAN_FASTSEEK, /* arg1= vlc_bool_t * res=cannot fail*/
37 STREAM_SET_POSITION, /* arg1= int64_t res=can fail */
38 STREAM_GET_POSITION, /* arg1= int64_t * res=cannot fail*/
40 STREAM_GET_SIZE, /* arg1= int64_t * res=cannot fail (0 if no sense)*/
44 VLC_EXPORT( stream_t *, stream_OpenInput, ( input_thread_t * ) );
45 VLC_EXPORT( void, stream_Release, ( stream_t * ) );
46 VLC_EXPORT( int, stream_vaControl, ( stream_t *, int, va_list ) );
47 VLC_EXPORT( int, stream_Control, ( stream_t *, int, ... ) );
48 VLC_EXPORT( int, stream_Read, ( stream_t *, void *, int ) );
49 VLC_EXPORT( int, stream_Peek, ( stream_t *, uint8_t **, int ) );
51 VLC_EXPORT( pes_packet_t *, stream_PesPacket, ( stream_t *, int ) );