1 /*****************************************************************************
2 * input_file.c: functions to read from a file
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public
19 * License along with this program; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
27 #include <sys/types.h> /* on BSD, uio.h needs types.h */
28 #include <sys/uio.h> /* "input.h" */
36 #include "input_file.h"
38 /*****************************************************************************
39 * input_FileOpen : open a file descriptor
40 *****************************************************************************/
41 int input_FileOpen( input_thread_t *p_input )
47 /*****************************************************************************
48 * input_FileRead : read from a file
49 *****************************************************************************/
50 int input_FileRead( input_thread_t *p_input, const struct iovec *p_vector,
57 /*****************************************************************************
58 * input_FileClose : close a file descriptor
59 *****************************************************************************/
60 void input_FileClose( input_thread_t *p_input )