diff options
Diffstat (limited to 'src/input/vcd/vcdio.h')
-rw-r--r-- | src/input/vcd/vcdio.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/input/vcd/vcdio.h b/src/input/vcd/vcdio.h new file mode 100644 index 000000000..98a236d42 --- /dev/null +++ b/src/input/vcd/vcdio.h @@ -0,0 +1,66 @@ +/* + $Id: vcdio.h,v 1.1 2003/10/13 11:47:11 f1rmb Exp $ + + Copyright (C) 2002 Rocky Bernstein <rocky@panix.com> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + +*/ + +#ifndef _VCDIO_H_ +#define _VCDIO_H_ + +/*! + From xine plugin spec: + + read nlen bytes, return number of bytes read. +*/ +off_t +vcdio_read (vcdplayer_input_t *this, char *buf, const off_t nlen); + +/*! Opens VCD device and initializes things. + + - do nothing if the device had already been open and is the same device. + - if the device had been open and is a different, close it before trying + to open new device. +*/ +bool +vcdio_open(vcdplayer_input_t *this, char *intended_vcd_device); + +/*! Closes VCD device specified via "this", and also wipes memory of it + from it inside "this". */ +/* FIXME Move player stuff to player. */ +int +vcdio_close(vcdplayer_input_t *this); + +/*! + From xine plugin spec: + + seek position, return new position + + if seeking failed, -1 is returned +*/ +off_t +vcdio_seek (vcdplayer_input_t *this, off_t offset, int origin); + +#endif /* _VCDIO_H_ */ + +/* + * Local variables: + * c-file-style: "gnu" + * tab-width: 8 + * indent-tabs-mode: nil + * End: + */ |